Re: [xml] Error of Canonical while replacing External Entities



According to C14N specification, it is responsible for doing
these replacements

> The XML processor performs the following tasks in order:
>    1. normalize line feeds
>    2. normalize attribute values
>    3. replace CDATA sections with their character content
>    4. resolve character and parsed entity references

and you have to have an xmlDocPtr which was loaded with all
the flags you describe. If you are not sure then you can
serialize the document to a buffer and parse it again. Note
that instead of setting global parser flags you can set them
in the parser context and then these flags will be used for
the parsed document only.

Aleksey





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]