#72 Indentation of XML DTDs

closed-fixed
nobody
None
5
2004-04-22
2004-01-21
No

Some of the XML files I use have DTDs.

Could the indent be changed to ignore <! whatever?

At the moment it does this to XMLSchema.xsd:
<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA
200102//EN" "XMLSchema.dtd" [-->
<!-- provide ID type information even for parsers
which only read the
internal subset -->
<!ATTLIST xs:schema id ID #IMPLIED>
<!ATTLIST xs:complexType id ID #IMPLIED>
<!ATTLIST xs:complexContent id ID #IMPLIED>
<!ATTLIST xs:simpleContent id ID #IMPLIED>

Discussion

  • Pete Kirkham

    Pete Kirkham - 2004-01-21

    Logged In: YES
    user_id=774775

    <pre>
    &lt;!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA
    200102//EN" "XMLSchema.dtd" [-->
    &lt;!-- provide ID type information even for parsers which
    only read the
    internal subset -->
    &lt;!ATTLIST xs:schema id ID #IMPLIED>
    &lt;!ATTLIST xs:complexType id ID #IMPLIED>
    &lt;!ATTLIST xs:complexContent id ID #IMPLIED>
    &lt;!ATTLIST xs:simpleContent id ID #IMPLIED>
    </pre>

     
  • Pete Kirkham

    Pete Kirkham - 2004-01-21

    Logged In: YES
    user_id=774775

    I patched src\org\armedbear\j\XmlMode.java line 215 by adding
    &amp;&amp; !modelText.startsWith("&lt;!")
    which seems OK

     
  • Peter Graves

    Peter Graves - 2004-04-22
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks