Re: Problem with string that contains XML-tags

From: Date: Fri, 01 Aug 2003 13:42:12 +0000
Subject: Re: Problem with string that contains XML-tags
References: 1  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-177@lists.php.net to get a copy of this message
When you create a dom document from the string you want to import, you can use the importNode method from the domDocument interface. See also: http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#Core-Document-importNode </Rense> "Christian Weyer" <cw@centerwave.de> wrote in message news:20030730235149.15432.qmail@pb1.pair.com... > Hi > > I have a problem with a string that contains XML-tags. > I created a domdocument and want to import a string with serveral xml-tags > into the domdocument. But it does (obviously) not work because the < and > > are written encoded. I want to ask now if there is a way to import a > wellformed string into an existing domdocument without parsing the string > and creating domelemnts for each xml-tag found in it (because this would be > *very* complicated). I guess there might be a function like eval for the > xml-implementation. > > I'm using PHP 5, and yes i looked at the manual (which is not very complete) > and i tried most functions i could get with get_class_methods($domdocument). > > Thanks for your help. > mfg Chris > >

« previous php.xml.dev (#177) next »