Namespaces für XML korrgiert

git-svn-id: https://svn.libreccm.org/ccm/trunk@1062 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2011-08-15 15:56:39 +00:00
parent 0ae9007a1c
commit a49000d94b
1 changed files with 4 additions and 4 deletions

View File

@ -42,6 +42,8 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
Logger.getLogger( Logger.getLogger(
PublicPersonalProfilesServlet.class); PublicPersonalProfilesServlet.class);
private static final String PREVIEW = "preview"; private static final String PREVIEW = "preview";
private static final String PPP_NS =
"http://www.arsdigita.com/PublicPersonalProfile/1.0";
private final PublicPersonalProfileConfig config = PublicPersonalProfiles. private final PublicPersonalProfileConfig config = PublicPersonalProfiles.
getConfig(); getConfig();
@ -164,16 +166,14 @@ public class PublicPersonalProfilesServlet extends BaseApplicationServlet {
(PublicPersonalProfile) DomainObjectFactory. (PublicPersonalProfile) DomainObjectFactory.
newInstance(profiles.getDataObject()); newInstance(profiles.getDataObject());
Element profileElem = Element profileElem =
root.newChildElement("ppp:profile", root.newChildElement("ppp:profile", PPP_NS);
"http://www,arsdigita.com/publicPersonalProfile/1.0");
GenericPerson owner = profile.getOwner(); GenericPerson owner = profile.getOwner();
if (owner == null) { if (owner == null) {
throw new IllegalStateException( throw new IllegalStateException(
"Failed to get owner of profile."); "Failed to get owner of profile.");
} }
Element profileOwnerName = profileElem.newChildElement( Element profileOwnerName = profileElem.newChildElement(
"ppp:ownerName", "ppp:ownerName", PPP_NS);
"http://www,arsdigita.com/publicPersonalProfile/1.0");
profileOwnerName.setText(owner.getFullName()); profileOwnerName.setText(owner.getFullName());
createNavigation(profile, root, navPath); createNavigation(profile, root, navPath);