Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] remove xmlinclude attributes

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT ibiblio.org>
  • To: Jon Stockdill <jon.stockdill AT gmail.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] remove xmlinclude attributes
  • Date: Thu, 28 May 2009 06:46:58 -0700

On Wed, May 27, 2009 at 6:41 PM, Jon Stockdill <jon.stockdill AT gmail.com>
wrote:
> When I use the XInclude class, it produces xml like:
> <?xml version="1.0" encoding="UTF-8"?>
> <parentxml>
> <title>XML TITLE</title>
> <Element xmlns="" xml:base="file:///path/to/child.xml">
> <includedxml active="true" />
> </Element>
> </parentxml>
>
> Is it possible to perform the include w/o the attributes:
> xmlns="" xml:base="file:///path/to/child.xml"


xml:base is required by the spec to reproduce the correct infoset.
However the xmlns="" looks weird. Is that actual, real output you're
showing me? Or is maybe there a default namespace declaration on the
parent document and not one on the child? If so, then it's necessary.
If not, I suspect I can delete the xmlns="".


--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page