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="">"}
> 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 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

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