Subject: RE: remove xmlns attribute from xfire output xml?



I'm failing to trade in xmlns attributes for prefixes using .aegis.xml
files.

Based in the doc on the web, I added:

<mappings xmlns:btrnm="urn:com.basistech.rnm">
<mapping name="btrnm:Transliteration">
</mapping>
</mappings>

However, I still get explicit xmlns attributes (and no prefixes) on the
elements on the wire.

-----Original Message-----
From: Christopher Moesel [mailto:[email protected]]
Sent: Thursday, December 21, 2006 12:42 PM
To: [email protected]
Subject: RE: [xfire-user] remove xmlns attribute from xfire output xml?

I suspect that it's setting the xmlns on each element in AttractionDTO
because there's no default ns for it to inherit from. Try declaring an
xmlns on the AttractionDTO element itself. That will probably remove
the xmlns from its children since they now have an xmlns to inherit.

The elements within physicalAddressDTO do not have xmlns specified on
them because it's already specified on the physicalAddressDTO element
itself.

-Chris

-----Original Message-----
From: Phillip Rhodes [mailto:[email protected]]
Sent: Thursday, December 21, 2006 12:32 PM
To: [email protected]
Subject: [xfire-user] remove xmlns attribute from xfire output xml?

Hello,
The consumer of my xfire service has requested that I remove the xmlns
attribute from the child elements of AttractionDTO. If you see below,
xfire is not setting the xmlns attribute for child elements of the
physicalAddressDTO.

Why would xfire set the xmlns attribute for the AttractionDTO object,
and not the physicalAddressDTO?

The reason we would like to do this is that we are doing an XSL
transformation of what xfire returns and this makes xpath expressions
easier.


Thanks, xfire is rocking for me.
Phillip

Example xfire xml:

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfAttractionDTO
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
<AttractionDTO>
<attractionId
xmlns="http://dto.dmi.reffects.com";>78059</attractionId>
<bookItUrl xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<couponDtos xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<diningNearbyAttractions xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<emailAddress xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<freeSetting xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<imageDTOs xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<imageGalleryDTOs xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<keywords xmlns="http://dto.dmi.reffects.com";>allegheny
biking trail
bikes</keywords>
<lodgingNearbyAttractions xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<mailingAddress xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<otherNearbyAttractions xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<paidAd xmlns="http://dto.dmi.reffects.com";>N</paidAd>
<photoUrl xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<physicalAddressDTO xmlns="http://dto.dmi.reffects.com";>
<addressId>78059</addressId>
<faxNumber xsi:nil="true"/>
<handicapAccess>N</handicapAccess>
<latitude>40.457548</latitude>
<longitude>-79.741527</longitude>

<longitudeLatitudeOverride>false</longitudeLatitudeOverride>
<phoneNumber>724-733-4665</phoneNumber>
<streetAddress>675 Old Frankstown
Rd.</streetAddress>
<streetAddress2 xsi:nil="true"/>
<zipCodeDTO>
<city>PITTSBURGH</city>
<state>PA</state>
<zipCode>15239</zipCode>
</zipCodeDTO>
</physicalAddressDTO>
<printAdvertisingUrl xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<source xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<url xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
<viewable
xmlns="http://dto.dmi.reffects.com";>true</viewable>
<weatherDTO xsi:nil="true"
xmlns="http://dto.dmi.reffects.com"/>
</AttractionDTO>
</ArrayOfAttractionDTO>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email






Programming list archiving by: Enterprise Git Hosting