No announcement yet.

XML hex encoding

  • Filter
  • Time
  • Show
Clear All
new posts

  • Edwin Knoppert
    OK, thanks,

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

    Leave a comment:

  • Knuth Konrad
    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.

    *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

    Leave a comment:

  • Edwin Knoppert
    started a topic XML hex encoding

    XML hex encoding

    On internet i find the example:
    working fine and results in a
    Full XML:
    <?xml version="1.0"?>
        <assembly code="1234">&#x3C;ZA&#xA;&#xD;A&#x9;dddd #x9, aaaa#xA bbb#xD
    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?