validate dynamic xml document

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yoko

    validate dynamic xml document


    Using only php 4.x has anybody come across some code or any sample code to
    validate a dynamically generated xml document from another server. But this
    isn't a RSS feed or anything like that.
    so for example http://www.mydomain.com/xmlgen?keyse...ndo&output=xml

    so this will output a xml document like this

    <?xml version="1.0"?>
    <record>
    <title>Ninten do wii</title>
    <url>http://www.nintendo.co m</url>
    </record>

    Any ideas thanks for everybody that helped in advanced.


  • petersprc

    #2
    Re: validate dynamic xml document

    The DOM XML extension (compile with --with-dom) can do this I believe.
    domxml_open_mem can return false or a DOMDocument object.

    Yoko wrote:
    Using only php 4.x has anybody come across some code or any sample code to
    validate a dynamically generated xml document from another server. But this
    isn't a RSS feed or anything like that.
    so for example http://www.mydomain.com/xmlgen?keyse...ndo&output=xml
    >
    so this will output a xml document like this
    >
    <?xml version="1.0"?>
    <record>
    <title>Ninten do wii</title>
    <url>http://www.nintendo.co m</url>
    </record>
    >
    Any ideas thanks for everybody that helped in advanced.

    Comment

    Working...