0

Is there a c xml parser that does not allocate any memory and just returns ptr and size in original buffer (aka token parser)?

I'm trying out libxml2 and I was trying but it does allocate every string. To me when I want to deserialize values I don't want to dup them.

4
  • What if the strings contain entities? Commented Apr 11, 2022 at 18:14
  • Does not change anything, I'm looking for xml token parser. Commented Apr 12, 2022 at 10:38
  • I'm sure you are. SO, for better or worse, doesn't allow questions of the form "Please recommend a software package". See help center. My question to you was a bit too abbreviated, I'm afraid. I should have asked, "Suppose the string contains an entity. How do you expect the entity to be expanded without a memory allocation?" But you don't have to answer. It was mostly rhetorical. Commented Apr 12, 2022 at 15:14
  • Sorry, that was the wrong help shortcut. The one I meant to use was help center. (See #3 in the list of categories of questions which are not on-topic.) Commented Apr 12, 2022 at 15:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.