Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Please help getting data out of this XmlElement >Thread Next - Re: Please help getting data out of this XmlElement Re: Please help getting data out of this XmlElementTo: NULL Date: 9/8/2009 7:27:00 AM Many thanks for your response. I'm writing a powershell script and inspecting the xml objects through the console. The xml was produced by the "put" of an x-forms submission. The namespace declared on the xforms page is: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" but the same namespace did not get written to the xml output. Any thoughts? "Martin Honnen" wrote: > 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/ > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
