XMLDecl handling [Re: asymmetry between serialzier and parser inwritingXMLDecl]
Aleksander Slominski <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
hi, i have just checked in new optional properties to handle XMLDecl and i am working to modify tests to check for XMLDecl handling. alek Iain Shigeoka wrote: > On 8/27/02 8:52 AM, "Aleksander Slominski" <[email protected]> > wrote: > > > OK. this is more elegant approach. let do it this way: > > * XMLDecl is not reported as PI > > * after next() or nextToken() is called user application can obtain > > XML version, standalone and encoding from XML declaration > > in following ways: > > # version: getProperty(" > > http://xmlpull.org/v1/doc/properties.html#xmldecl-version") > > returns String ("1.0") or null if XMLDecl was not read > > # standalone: getProperty(" > > http://xmlpull.org/v1/doc/features.html#xmldecl-standalone") > > returns Boolean: null if there was no standalone declaration > > Boolean(true) if standalon="yes" and Boolean(false) when > > standalone="no" > > # encoding: obtained from getInputEncoding() > > null if stream had unknown encoding (not set in setInputStream) > > and it was not declared in XMLDecl > > > > how does it sound? > > Sounds much better to me. > > -iain > > > To unsubscribe from this group, send an email to: > [email protected] > > > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/