Re: [xml] xmllint and namespaces



hi Fabrice,


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

Thanks a million times. That works.

Stefan
--
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 300066
|      ///           04277 Leipzig      04277 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost gmx net    kost imn htwk-leipzig de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -




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