Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Include Elements from other namespace in own XML

From: Pavel Lepin <p.lepin@-------.--->
To: NULL
Date: 7/6/2007 9:44:00 AM


Benjamin Kalytta <bkausbk@w...> wrote in
<f6db8c$mic$1@o...>:
>> [...] PHP 5 DOM works just fine.
>>   
> That's true. I made a stupid mistake. I always tried to
> get nodeValue of <string> which of course always get
> entire text content including those of all child elements.
> saveXML() now will output correct tree like expected.
> (Text <html:a href="#">Link</html:a>)
> 
> But is it possible to remove each namespace prefix from
> XML DOM Tree so that only a ... left? I think there is
> no XML conform way to do this.

If you mean 'is there a magic switch that would make that
happen upon parsing', then no, there isn't any that I'm
aware of (I suppose that's because getting rid of
namespaces is not a particularly good idea). However, this
is trivial to do using DOM tree traversal or XSLT
stylesheet.

But as I said, I'm not sure this is a good idea at all. Why
would you want to get rid of namespaces? If you don't want
namespaces, why does your document contain them in first
place?

-- 
Pavel Lepin


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