diff options
author | Mohammed Abdul Azeem <azeemmysore@gmail.com> | 2017-06-14 18:16:41 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-06-15 11:08:20 +0200 |
commit | 420cecf55878a2d652a61540ddc37a7faaf4cc46 (patch) | |
tree | 1a4ee822f7b5e9e0e21c31e6d24d7a8273c1b87e /sax/qa | |
parent | dd0df1c8a213ab6f0959145396bc273bf885af39 (diff) |
[API CHANGE] Add processingInstruction event to XFastDocumentHandler:
Also made changes in FastParser impl. to emit this event. I've made use
of existing namespace and element name strings to store target
and data for this event.
Change-Id: I6f00cd1172552dd9a74ec22190bef3d2289ae515
Reviewed-on: https://gerrit.libreoffice.org/38784
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sax/qa')
-rw-r--r-- | sax/qa/cppunit/xmlimport.cxx | 3 | ||||
-rw-r--r-- | sax/qa/data/nestedns.xml | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx index f08c0357af28..f6f320696d3d 100644 --- a/sax/qa/cppunit/xmlimport.cxx +++ b/sax/qa/cppunit/xmlimport.cxx @@ -191,8 +191,9 @@ void SAL_CALL TestDocumentHandler::ignorableWhitespace( const OUString& aWhitesp } -void SAL_CALL TestDocumentHandler::processingInstruction( const OUString& /*aTarget*/, const OUString& /*aData*/ ) +void SAL_CALL TestDocumentHandler::processingInstruction( const OUString& aTarget, const OUString& aData ) { + m_aStr = m_aStr + aTarget + aData; } diff --git a/sax/qa/data/nestedns.xml b/sax/qa/data/nestedns.xml index 18bc4ed34e60..566332b40ace 100644 --- a/sax/qa/data/nestedns.xml +++ b/sax/qa/data/nestedns.xml @@ -1,4 +1,5 @@ <?xml version="1.0" ?> +<?pi-target pi-data?> <Elements> <Book xmlns:lib="http://www.library.com/"> <lib:Title>Sherlock Holmes - I</lib:Title> @@ -13,6 +14,7 @@ <Electronics xmlns="http://doesntexist.com/electronics/"> <item> <Name>Apple iPhone 6s</Name> + <?pi-target-only?> <Price>$324</Price> </item> <item xmlns="http://doesntexist.com/dailyuse/"> |