Re: [xml] xmllint and namespaces



Title: Re: [xml] xmllint and namespaces

Stefan Kost wrote:

>
> You mean I can use a document *without namespaceprefixes, but with a
> default ns
> such as
>
>
>
>
> and when doing a query I register a
> ns={prefix="q",href="" href="http://gitk.sf.net/">http://gitk.sf.net/"}
> and writing my query as e.g. "//q:context"?

Exactly. ANd not only you can, but you must. Remember that namespace
prefixes are only syntactic sugar. What really matters is the Qualified
Name of the element.

  Hope this helps,

        Fabrice
--
Fabrice Desré
France Télécom R&D/DTL/TAL
Tél: +(33) (0)2 96 05 31 43
Fax: +(33) (0)2 96 05 39 45
http://www.francetelecom.com/rd



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]