Announcement

Collapse
No announcement yet.

XML hex encoding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Edwin Knoppert
    replied
    OK, thanks,

    Any brief hint on which way to load it?
    Or is it a normal element?

    Leave a comment:


  • Knuth Konrad
    replied
    CDATA is your friend

    CDATA Sections

    In a document, a CDATA section instructs the parser to ignore most markup characters.

    Consider a source code listing in an XML document. It might contain characters that the XML parser would ordinarily recognize as markup (< and &, for example). In order to prevent this, a CDATA section can be used.

    <![CDATA[
    *p = &q;
    b = (i <= 3);
    ]]>

    Between the start of the section, “<![CDATA[” and the end of the section, “]]>”, all character data is passed directly to the application.

    The only string that cannot occur in a CDATA section is “]]>”. Note: comments are not recognized in a CDATA section. If present, the literal text “<!--comment-->” will be passed directly to the application.
    See for example http://articles.techrepublic.com.com...2-1050529.html

    Leave a comment:


  • Edwin Knoppert
    started a topic XML hex encoding

    XML hex encoding

    On internet i find the example:
    Code:
    &#x3C;
    working fine and results in a
    Code:
    <
    Full XML:
    Code:
    <?xml version="1.0"?>
    <doc>
        <assembly code="1234">&#x3C;ZA&#xA;&#xD;A&#x9;dddd #x9, aaaa#xA bbb#xD
    
        </assembly>
    </doc>
    If i change 3C for 00 it does not seem to work but then, my debug ends the string anyway due char 0 so i tested again with 9.

    char 0 gives me using (PB's) asc()... 0 but 9 gives 90 and i assume it's skipping it and takes the Z from ZA

    One must be able to embed all charcodes from 0 to 255 right?
Working...
X