in reply to Re: XML::LibXML and XML Namespaces (processing OpenOffice documents)
in thread XML::LibXML and XML Namespaces (processing OpenOffice documents)

Please go on. What is the meaning of the URI's? What should these point to?
  • Comment on Re: Re: XML::LibXML and XML Namespaces (processing OpenOffice documents)

Replies are listed 'Best First'.
Re: Re: Re: XML::LibXML and XML Namespaces (processing OpenOffice documents)
by IlyaM (Parson) on Mar 11, 2003 at 21:48 UTC
    Namespace URIs don't really point anywhere. They are simply a mean to create non-conflicting namespaces for tags and attributes in XML documents. If you happen to own domain mydomain.com and you design your own DTD you may for example use http://mydomain.com/mydtd URI for tags and attributes you use. It is unluckely to conflict with DTDs created by somebody else as they will have URIs with other domain part and you can always choose non-conflicting URIs in your own domain for other your DTDs.

    Read Namespaces in XML for more info.

    Update: You post reminded me to publish somewhere my patches for XML::LibXML which make xpath queries to documents with namespaces easier. I've just posted it to perl-xml mailing list, you may find it useful.

    --
    Ilya Martynov, ilya@iponweb.net
    CTO IPonWEB (UK) Ltd
    Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net
    Personal website - http://martynov.org