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

Marco Antoniotti marcoxa at cs.nyu.edu
Tue Dec 1 21:47:44 UTC 2009


On Dec 1, 2009, at 16:48 , David Lichteblau wrote:

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

Ok.  It just strenghten my hunches about XML being quite messy.

>> <?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.
>

Ok.  But what about xerces or the Java libraries; would they do it?

Cheers

--
Marco





More information about the cxml-devel mailing list