[cxml-devel] Parsing yields TEXT elements with #\Newline #\Tab

David Lichteblau david at lichteblau.com
Tue Dec 1 15:48:55 UTC 2009


Quoting Marco Antoniotti (marcoxa at cs.nyu.edu):
> Ok, that is a lot of work on my part AFAIAC.  I think I understand
> the mechanics of what you are saying, but you are not answering my
> question.
> 
> I gave you the first two lines of theSBML document.  SBML comes with
> a XSchema definition.  I am assuming that having the xsd will be
> equivalent to having the DTD (I think I am right on this) and
> therefore have the correct indication about what is what and how it
> should be parsed.

In general, you cannot translate XML Schema into a DTD.

> <?xml version="1.0" encoding="UTF-8"?>
> <sbml xmlns="http://www.sbml.org/sbml/level1" level="1" version="1">
> ...
> </sbml>
> 
> is what I have.
> 
> Can XML be coerced into accessing the
> xmlns="http://www.sbml.org/sbml/level1" (with DRAKMA), understanding
> it and using it or not?  (Thus - hopefully - stripping the TEXT
> elements automatically?)
> 
> If yes, how?

No, cxml does not do that.  I has no support for XML Schema at all.


d.




More information about the cxml-devel mailing list