Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Please help getting data out of this XmlElement

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/8/2009 4:03:00 PM
molipha wrote:

> I have this xml:
> <image order="3">
>    <xsi:location xsi:type="xs:anyURI">
>       file:///images/image.jpg
>    </xsi:location>
>    <caption>
>       A lovely photo
>    </caption>
> </image>

What you have posted is not well-formed XML with namespace, the prefix 
'xsi' needs to be bound to a URI.

> I can set var y = image.location and the console shows that I have this 
> object:
> 
>  xsi : http://www.w3.org/2001/...
>  type : xs:anyURI
> #text : file:///D:/images...
> 
>                                
> 
> I can get xsi and type parameters no problem simply using a dot reference 
> but y.#text sure don't work and I can't seem to come up with a work-around.

Which API in which programming language exactly do you use?

-- 

	Martin Honnen --- MVP XML
	http://msmvps.com/blogs/martin_honnen/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent