Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-12 Thread Christopher Taylor
On 12.12.2008, at 15:49, J. McConnell wrote: > > On Fri, Dec 12, 2008 at 9:39 AM, Chouser wrote: >> >> On Fri, Dec 12, 2008 at 9:15 AM, J. McConnell >> wrote: >>> >>> {:tag :root, :attrs nil, :content [ >>> {:tag :fragment, :attrs nil, :content [ >>> {:tag :

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-12 Thread J. McConnell
On Fri, Dec 12, 2008 at 9:49 AM, J. McConnell wrote: > On Fri, Dec 12, 2008 at 9:39 AM, Chouser wrote: >> >> I think it's often desirable to also maintain (somewhere) the original >> document's shortcut names, and use those where applicable when >> emitting XML text again. > > I agree. Unfortuna

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-12 Thread Chouser
On Fri, Dec 12, 2008 at 9:15 AM, J. McConnell wrote: > > {:tag :root, :attrs nil, :content [ > {:tag :fragment, :attrs nil, :content [ >{:tag ::title, :attrs nil, > :content ["A HEAD Title"]} As I mentioned in another thread, keywords can already handle url

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-12 Thread J. McConnell
On Fri, Dec 12, 2008 at 9:39 AM, Chouser wrote: > > On Fri, Dec 12, 2008 at 9:15 AM, J. McConnell wrote: >> >> {:tag :root, :attrs nil, :content [ >> {:tag :fragment, :attrs nil, :content [ >>{:tag ::title, :attrs nil, >> :content ["A HEAD Title"]} > > As I

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-12 Thread J. McConnell
On Thu, Dec 11, 2008 at 8:49 PM, Robert Koberg wrote: > > Given an XML structure like: > > http://purl.org/dc/elements/1.1/"; > > http://www.w3.org/1999/xhtml";> > A HEAD Title > A BODY Title > > http://www.w3.org/1999/xhtml";> > A HEAD Title > A BODY Title > > > > whi

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-11 Thread Robert Koberg
Hi, Given an XML structure like: http://purl.org/dc/elements/1.1/"; > http://www.w3.org/1999/xhtml";> A HEAD Title A BODY Title http://www.w3.org/1999/xhtml";> A HEAD Title A BODY Title which will be parsed by clojure.xml/parse and converted into a nested c

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-11 Thread Robert Koberg
> Apologies for responding to myself, but maybe an example might help (inline below) >> >> Hi again, >> >> I see the default ContentHandler implementation does not handle XML >> Namespaces. Is that the case or does the :xmlns symbol > > I meant keyword (I think) here. For example, say I have

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-11 Thread Robert Koberg
On Dec 11, 2008, at 3:44 PM, Robert Koberg wrote: > > Hi again, > > I see the default ContentHandler implementation does not handle XML > Namespaces. Is that the case or does the :xmlns symbol I meant keyword (I think) here. For example, say I have /xml/ like: {:tag :my-root, attrs {:xmlns:x