Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-08

Next patch for XML stuff

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sergei Gorelkin

Hello,

Here is the next portion of my patches to XML stuff:

dom.pp:
- Removed unneeded TDOMNode.FNodeName/FNodeValue fields to reduce
memory requirements;
- finished TDOMElement.GetElementsByTagName;
- Implemented TDOMNode.TextContent property;
- Implemented attribute value normalization;
- Fixed TDOMNode.Normalize and TDOMNode.InsertBefore for fragments.
names.inc:
- rewritten in cross-platform way, added XML 1.1 data;
xmlwrite.pp:
- Added support for Unicode characters with code > 65535;
- Added writing TDOMDocumentType nodes;
- Fixed handling of end-of-lines contained in node content;
- Code cleaned up, so this unit is almost complete :)

xmlread.pp:
- At this moment, it contains only fixes needed for the whole stuff to compile.

Actually I have almost developed a thing that can be called "non-validating parser" - capable of handling XML 1.1 and including external entities. I achieved 100% conformance with W3.org test suite. However, I feel that it's too early to release it because it does not fit into existing interface and has possibly undesired dependencies - but I'd better write a separate letter to discuss it.

Best regards, Sergei

Reply by email

Vincent Snijders
to Sergei Gorelkin
Sergei Gorelkin wrote 30 lines
Hello, Here is the next portion of my patches to XML stuff: dom.pp: - Removed unneeded TDOMNode.FNodeName/FNodeValue fields to reduce memory requirements; - finished TDOMElement.GetElementsByTagName; - Implemented TDOMNode.TextContent property; - Implemented attribute value normalization; - Fixed TDOMNode.Normalize and TDOMNode.InsertBefore for fragments. names.inc: - rewritten in cross-platform way, added XML 1.1 data; xmlwrite.pp: - Added support for Unicode characters with code > 65535; - Added writing TDOMDocumentType nodes; - Fixed handling of end-of-lines contained in node content; - Code cleaned up, so this unit is almost complete :) xmlread.pp: - At this moment, it contains only fixes needed for the whole stuff to compile. Actually I have almost developed a thing that can be called "non-validating parser" - capable of handling XML 1.1 and including external entities. I achieved 100% conformance with W3.org test suite. However, I feel that it's too early to release it because it does not fit into existing interface and has possibly undesired dependencies - but I'd better write a separate letter to discuss it.

As far as I can see, this patch has not yet been applied. I have it locally for a month now, but didn't notice any problems. I did not specifically test it though.

Vincent

Reply by email

Michael Van Canneyt
to Vincent Snijders
Vincent Snijders wrote 36 lines
Sergei Gorelkin schreef: > Hello, > > Here is the next portion of my patches to XML stuff: > > dom.pp: > - Removed unneeded TDOMNode.FNodeName/FNodeValue fields to reduce > memory requirements; > - finished TDOMElement.GetElementsByTagName; > - Implemented TDOMNode.TextContent property; > - Implemented attribute value normalization; > - Fixed TDOMNode.Normalize and TDOMNode.InsertBefore for fragments. > > names.inc: > - rewritten in cross-platform way, added XML 1.1 data; > > xmlwrite.pp: > - Added support for Unicode characters with code > 65535; > - Added writing TDOMDocumentType nodes; > - Fixed handling of end-of-lines contained in node content; > - Code cleaned up, so this unit is almost complete :) > > xmlread.pp: > - At this moment, it contains only fixes needed for the whole stuff to > compile. > > Actually I have almost developed a thing that can be called > "non-validating parser" - capable of handling XML 1.1 and including > external entities. I achieved 100% conformance with W3.org test > suite. However, I feel that it's too early to release it because it > does not fit into existing interface and has possibly undesired > dependencies - but I'd better write a separate letter to discuss it. As far as I can see, this patch has not yet been applied. I have it locally for a month now, but didn't notice any problems. I did not specifically test it though.

Vincent,

You can apply the patch; At the time when it was sent, my PC was broken. That's why it was not applied.

Michael.

Reply by email

Vincent Snijders
to Sergei Gorelkin: Here is the next portion of my patches to XML stuff: dom.pp: - Removed unneeded…
Sergei Gorelkin wrote 30 lines
Hello, Here is the next portion of my patches to XML stuff: dom.pp: - Removed unneeded TDOMNode.FNodeName/FNodeValue fields to reduce memory requirements; - finished TDOMElement.GetElementsByTagName; - Implemented TDOMNode.TextContent property; - Implemented attribute value normalization; - Fixed TDOMNode.Normalize and TDOMNode.InsertBefore for fragments. names.inc: - rewritten in cross-platform way, added XML 1.1 data; xmlwrite.pp: - Added support for Unicode characters with code > 65535; - Added writing TDOMDocumentType nodes; - Fixed handling of end-of-lines contained in node content; - Code cleaned up, so this unit is almost complete :) xmlread.pp: - At this moment, it contains only fixes needed for the whole stuff to compile. Actually I have almost developed a thing that can be called "non-validating parser" - capable of handling XML 1.1 and including external entities. I achieved 100% conformance with W3.org test suite. However, I feel that it's too early to release it because it does not fit into existing interface and has possibly undesired dependencies - but I'd better write a separate letter to discuss it.

Thanks. Applied in revision 4775.

Vincent

Reply by email