sergei
57ba5f956e
+ After reaching EOF condition, clear FNodeData[0] slot
...
* For entities in attributes, place entity name to FQName rather than to FValueStr.
* Allow doc to stay unassigned.
git-svn-id: trunk@18104 -
2011-08-05 18:45:16 +00:00
sergei
45771d0a70
* Changed behavior of FNesting to conform closer to semantics of .net XmlReader: increment it after the start tag has been parsed and decrement before processing the end tag, except for the root element (which is placed at index zero).
...
git-svn-id: trunk@18103 -
2011-08-05 15:34:42 +00:00
sergei
151a8b59fb
* Factored ParseIgnoreSection into separate procedure
...
+ Overloaded THashTable.FindOrAdd(const WideString) for convenience
git-svn-id: trunk@18102 -
2011-08-05 15:06:39 +00:00
joost
6ae49f6c74
* Some fpmake fixes for windows
...
git-svn-id: trunk@18076 -
2011-08-03 15:32:15 +00:00
marco
043e9b2ec2
* Trunk version to 2.7.1
...
git-svn-id: trunk@18075 -
2011-08-03 13:59:33 +00:00
marco
39d7bb511d
* Regenned all makefiles before 2.6.x branching.
...
git-svn-id: trunk@18073 -
2011-08-03 13:41:52 +00:00
sergei
65b41a6c73
* xmlread.pp, renamed TXMLReader to TXMLTextReader.
...
git-svn-id: trunk@18054 -
2011-08-01 19:46:30 +00:00
joost
d567d2e950
* More fpmake.pp-files fixes
...
git-svn-id: trunk@18049 -
2011-08-01 16:08:51 +00:00
joost
4392dd13a4
* fpmake.pp-files fixes
...
git-svn-id: trunk@18041 -
2011-07-31 21:51:11 +00:00
sergei
c7dceaf266
* xmlread.pp, implemented a separate parsing loop for top-level content
...
+ Implemented reporting fake top-level text nodes with #10 character in canonical mode. This fixes level3/ls/canonicalform08 and level3/ls/canonocalform09 and completes c14n support in the reader.
git-svn-id: trunk@18037 -
2011-07-31 17:20:48 +00:00
sergei
72dcf89350
* Output the encoding label (still fixed to "utf-8", others are not yet supported), Mantis #19827 , #19172 .
...
git-svn-id: trunk@18034 -
2011-07-29 06:08:04 +00:00
sergei
70bc36da85
+ Implemented TDOMDocument.xmlStandalone property
...
git-svn-id: trunk@18033 -
2011-07-29 04:03:30 +00:00
sergei
7e102d12ca
* Escape '>' characters in attribute values, resolves #19831
...
git-svn-id: trunk@18032 -
2011-07-29 01:38:26 +00:00
joost
092892ee82
* Replaced 5 StringReplaces with one StringsReplace
...
git-svn-id: trunk@17755 -
2011-06-14 19:23:05 +00:00
michael
10124c6f1f
* Applied and tested patch by August Klein for bug #19351
...
git-svn-id: trunk@17721 -
2011-06-11 20:39:56 +00:00
michael
8f49adf3c8
* Patch from Ido Kanner to add HTMLEncode and HTMLDecode
...
git-svn-id: trunk@17718 -
2011-06-11 11:54:01 +00:00
michael
dec9a74507
* Marked TXMLConfig component as deprecated as well
...
git-svn-id: trunk@17357 -
2011-04-21 11:28:20 +00:00
michael
baf0ed35f3
* Patch from Inoussa to fix AV in certain cases
...
git-svn-id: trunk@17184 -
2011-03-26 18:54:44 +00:00
sergei
b7e26ed986
* sax_html.pp, ignore markup in STYLE and SCRIPT elements, Mantis #18826
...
git-svn-id: trunk@17003 -
2011-02-26 16:59:57 +00:00
sergei
884ec3abb3
* Cleanup ParseContent()
...
- XMLVersion property has been made available in TDOMDocument, removed inheritance check.
* Improved parsing the content model a bit
* Cleanup comments
git-svn-id: trunk@16987 -
2011-02-23 15:55:18 +00:00
sergei
e46c51e1bf
* xmlread.pp: split handling of node and validation stacks. Validation stack is now maintained only in validation mode.
...
git-svn-id: trunk@16973 -
2011-02-22 13:14:31 +00:00
sergei
9ca12c0377
* xmlread.pp, remove FCursorStack and resort back to a single cursor node. But this time it is simply a local variable.
...
git-svn-id: trunk@16962 -
2011-02-21 16:11:38 +00:00
sergei
8ed16bb3ab
* xmlread.pp, continue separating validation checks from the rest of code.
...
* Fixed reported locations for (hopefully) all namespace-related errors.
git-svn-id: trunk@16959 -
2011-02-21 01:50:49 +00:00
sergei
6a26b9cff3
* xmlread.pp, started separating validation checks from the rest of code.
...
git-svn-id: trunk@16946 -
2011-02-20 10:44:25 +00:00
sergei
6ccb769768
* xmlread.pp, the end of root element is now detected without involving DOM nodes.
...
git-svn-id: trunk@16942 -
2011-02-19 18:14:08 +00:00
sergei
58725cdedd
* xmlread.pp, handle entity references in streaming style.
...
* Renamed TXMLCharSource.DTDSubsetType to Kind and changed its definition to reflect its purpose better.
git-svn-id: trunk@16932 -
2011-02-18 15:27:35 +00:00
sergei
3ea7f81f7e
+ fcl-xml, initial implementation of 'shared' DTD: it now consists of the model (classes TDTDModel, TEntityDecl, TNotationDecl), which is referenced by one or more TDOMDocumentType nodes.
...
git-svn-id: trunk@16914 -
2011-02-14 17:53:09 +00:00
sergei
f74c81aaeb
* Don't mess with DOM stuff in TXMLReader.ParseXmlOrTextDecl. Instead, put declaration attributes into fields of FSource, and copy them to DOM objects later.
...
* Small improvement to CheckMaxChars.
git-svn-id: trunk@16913 -
2011-02-13 19:27:56 +00:00
sergei
c369605056
- dom.pp, removed TDOMNamedNodeMap.FNodeType field. This reduces memory requirements.
...
git-svn-id: trunk@16901 -
2011-02-09 18:30:16 +00:00
sergei
124487b9b2
* xmlcfg.pp, changed 'exit' to 'break' so that function won't exit without result assigned, Mantis #18589
...
git-svn-id: trunk@16803 -
2011-01-23 15:52:47 +00:00
sergei
caa786af56
* xmlread.pp, fixed condition that was causing an infinite loop in case when a malformed xml contained a null character within whitespace (to be exact, within parts processed by SkipS procedure). Great thanks to alexs75 for finding and supplying such xml file :)
...
git-svn-id: trunk@16766 -
2011-01-15 07:35:40 +00:00
michael
a8e4234aca
* Patch from Graeme Geldenhuys to check for XMLDocument before typecasting it
...
git-svn-id: trunk@16443 -
2010-11-26 12:44:23 +00:00
sergei
b6c0948bb2
* unit xmlcfg.pp marked as deprecated.
...
git-svn-id: trunk@16307 -
2010-11-06 07:28:56 +00:00
sergei
b066395a2b
* xmlread.pp: separated DOM-specific code into DoStartElement(); introduced FNameTable.
...
git-svn-id: trunk@16270 -
2010-10-31 02:23:42 +00:00
sergei
6cb9cdcc0d
* xmlread.pp: maintain ID map at reader side, so it can do ID/IDREF validation without DOM.
...
* also don't allocate TForwardRef records for backward references, saves some ticks and bytes.
git-svn-id: trunk@16264 -
2010-10-30 15:18:44 +00:00
sergei
22f0692745
* xmlread.pp: since FIdRefs and FNotationRefs are never used at the same time (the former is used only while parsing root, the latter only while parsing DTD), simplify things a bit by replacing them with a single FForwardRefs.
...
git-svn-id: trunk@16259 -
2010-10-30 10:25:33 +00:00
sergei
b4aa087aad
* xmlread.pp, implemented some c14n features: when parsing with Options.CanonicalForm=True, report all attributes as specified and drop superfluous namespace declaration attributes. Fixes level3/ls/canonicalform10 and level3/ls/canonicalform11.
...
git-svn-id: trunk@16253 -
2010-10-29 03:36:55 +00:00
sergei
d96e17da77
* xmlread.pp, fixed an issue introduced by combination of r16046 and r16172: assigning doc.DocumentType only after DTD has been completely parsed prevented inner reader from parsing 2nd+ level entity references in default attribute values. This went unnoticed because of no positive tests, and was detected only by examining negative test diagnostic, namely for not-wf-sa-079 and not-wf-sa-080.
...
git-svn-id: trunk@16248 -
2010-10-28 20:23:42 +00:00
sergei
4468f72f6c
* xmlread.pp, added location information to TNodeData and got namespace-related errors reported at correct locations.
...
git-svn-id: trunk@16234 -
2010-10-27 22:42:01 +00:00
sergei
068d2fba37
* xmlread.pp, modified attribute parsing code to use DOM-independent data structures (third part)
...
* Namespace handling rewritten to fit into XMLReader's own data structures.
* Remaining TDOMElementDef's replaced by TElementDecl.
* Removed DoAttrText(), it has become obsolete.
* Create objects that are needed for namespace processing only if actually doing namespace processing, reduces memory requirements.
* Improved TAttributeDef construction.
git-svn-id: trunk@16230 -
2010-10-27 11:57:03 +00:00
sergei
4579226771
+ New unit dtdmodel.pp containing DTD-related classes.
...
* TXMLNodeType, TNodeData and TAttrDataType moved to xmlutils.pp, so they can be shared between dom, xmlread and dtdmodel.
* TContentParticle class moved from xmlread.pp to dtdmodel.pp.
* dom.pp and xmlread.pp switched to DOM-independent representation of DTD element declarations and attribute defaults.
git-svn-id: trunk@16221 -
2010-10-25 15:26:29 +00:00
sergei
b585a6a1d0
* xmlread.pp, continued reducing DOM dependencies:
...
* TContentParticle only stores and compares a pointer to an element definition, a particular type of that definition doesn't matter - so change it to TObject.
* In case of mixed content model, assign Type and Quantity to the root content particle, and process it the same way as element-only models.
* While parsing, store entities in THashTable instead of TDOMNamedNodeMap.
* Assign Prefix to element and attribute NodeData.
git-svn-id: trunk@16208 -
2010-10-23 18:20:49 +00:00
sergei
7e5ff8ca89
* xmlread.pp, modified attribute parsing code to use DOM-independent data structures (second part)
...
* ExpectAttValue() now builds both plain string value and first-level node chain.
* Normalize() procedure moved to xmlutils.pp and made publicly available as BufNormalize.
* ParseLiteral() cleaned of attribute-specific code; at this point it is clear it won't be used for parsing attributes.
git-svn-id: trunk@16186 -
2010-10-19 15:14:33 +00:00
sergei
e0d8556cae
* xmlread.pp, modified attribute parsing code to use DOM-independent data structures (first part)
...
git-svn-id: trunk@16184 -
2010-10-18 20:46:35 +00:00
sergei
dfe1c0f228
xmlread.pp, r16175 caused a regression in level1/core/commentgetcomment; we should ignore comments in DTD, but not between DTD and root element. Fixed.
...
git-svn-id: trunk@16183 -
2010-10-18 20:19:32 +00:00
sergei
d248315ae4
* xmlread.pp, do some cleanup and get rid of FCursor field.
...
git-svn-id: trunk@16175 -
2010-10-16 22:56:55 +00:00
sergei
6cb12d0efc
* xmlread.pp, doing progress with streaming API:
...
* correct handling of comments, PIs and (partially) DocumentType
git-svn-id: trunk@16172 -
2010-10-15 23:47:33 +00:00
sergei
d3bdf2577c
* xmlread.pp, doing progress with streaming API:
...
+ state transitions needed to report start/end element events correctly
+ procedures for maintaining attribute data
* excluded FCursor from attribute value parsing
git-svn-id: trunk@16161 -
2010-10-14 19:41:22 +00:00
mazen
b127fc154a
* Fixed spell error revealed by lintian.
...
git-svn-id: trunk@16094 -
2010-10-06 20:33:57 +00:00
sergei
6cc206ac77
* xmlread.pp: started implementing the streaming API, aka XmlTextReader from .net world.
...
git-svn-id: trunk@16079 -
2010-10-05 07:35:00 +00:00