Replies: 2 comments
-
The code looks correct on first glance. Your example XML does have a One note is that pugixml only supports a simplified way to model DOCTYPE that requires custom assembly of the contents of the DOCTYPE including any nested groups. For example, to reproduce the following more complex definition:
you'd have to set the doctype value to the full string with raw contents, something like
|
Beta Was this translation helpful? Give feedback.
-
Oh okay. So, I need to append strings to get result which I want and use that final form as value. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any sample about how can I create elementy types for DOCTYPE like this in runtime ?
https://www.javaskool.com/xml-document-type-definition/
I tried these
https://github.com/FF-Plugins-Docs/FF_PugiXml/blob/main/Source/FF_PugiXml/Private/FF_PugiXmlBPLibrary.cpp#L137
https://github.com/FF-Plugins-Docs/FF_PugiXml/blob/main/Source/FF_PugiXml/Private/FF_PugiXmlBPLibrary.cpp#L173
I tried second code after adding all of nodes (before saving it) if in case it automatically creates elements.
Also I tried to give attributes and childrens to DOCTYPE but it didn't work.
Right now my XML is like this.
Beta Was this translation helpful? Give feedback.
All reactions