You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by "Vyacheslav V. Yurkov" <uv...@gmail.com> on 2009/07/27 04:19:34 UTC

Several questions about Xerces-3.0

Hi,
I'm using Xerces-c-3.0 in my project under Linux. I have several questions.
1. What are pros and cons of using ICU library as a Transcoder?
2. I want to create a static version of my application.
  I compiled Xerces with parameters *--enable-static --disable-shared*.
  But when I try to compile my application I get following linker's errors:

../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
`xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()':
BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD0Ev[xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()]+0x24):
undefined reference to `xercesc_3_0::XMLEntityDecl::~XMLEntityDecl()'
BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD0Ev[xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()]+0x2c):
undefined reference to `xercesc_3_0::XMemory::operator delete(void*)'
../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
`xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()':
BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD1Ev[xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()]+0x23):
undefined reference to `xercesc_3_0::XMLEntityDecl::~XMLEntityDecl()'
../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
`xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
const&)':
BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
const&)]+0x35): undefined reference to
`xercesc_3_0::SAXParseException::SAXParseException(xercesc_3_0::SAXParseException
const&)'
BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
const&)]+0x3e): undefined reference to
`xercesc_3_0::SAXParseException::~SAXParseException()'
BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
const&)]+0x45): undefined reference to `typeinfo for
xercesc_3_0::SAXParseException'
../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
`xercesc_3_0::XMLAttDefList::~XMLAttDefList()':
BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013XMLAttDefListD0Ev[xercesc_3_0::XMLAttDefList::~XMLAttDefList()]+0x23):
undefined reference to `xercesc_3_0::XMemory::operator delete(void*)'
../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013DTDEntityDeclE[vtable
for xercesc_3_0::DTDEntityDecl]+0x10): undefined reference to
`xercesc_3_0::DTDEntityDecl::isSerializable() const'
../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013DTDEntityDeclE[vtable
for xercesc_3_0::DTDEntityDecl]+0x14): undefined reference to
`xercesc_3_0::DTDEntityDecl::serialize(xercesc_3_0::XSerializeEngine&)'
../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013DTDEntityDeclE[vtable
for xercesc_3_0::DTDEntityDecl]+0x18): undefined reference to
`xercesc_3_0::DTDEntityDecl::getProtoType() const'
../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013XMLAttDefListE[vtable
for xercesc_3_0::XMLAttDefList]+0x10): undefined reference to
`xercesc_3_0::XMLAttDefList::isSerializable() const'
../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013XMLAttDefListE[vtable
for xercesc_3_0::XMLAttDefList]+0x14): undefined reference to
`xercesc_3_0::XMLAttDefList::serialize(xercesc_3_0::XSerializeEngine&)'
../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013XMLAttDefListE[vtable
for xercesc_3_0::XMLAttDefList]+0x18): undefined reference to
`xercesc_3_0::XMLAttDefList::getProtoType() const'
../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTIN11xercesc_3_013DTDEntityDeclE[typeinfo
for xercesc_3_0::DTDEntityDecl]+0x8): undefined reference to `typeinfo for
xercesc_3_0::XMLEntityDecl'
../plugins/basic/libbasic.a(Project.o): In function
`Project::validateSchema()':
Project.cpp:(.text+0x652): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0x66a): undefined reference to
`xercesc_3_0::XMLString::transcode(char const*, unsigned short*, unsigned
int, xercesc_3_0::MemoryManager*)'
Project.cpp:(.text+0x672): undefined reference to
`xercesc_3_0::DOMImplementationRegistry::getDOMImplementation(unsigned short
const*)'
Project.cpp:(.text+0x681): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0x6a4): undefined reference to
`xercesc_3_0::XMLUni::fgDOMValidateIfSchema'
Project.cpp:(.text+0x6be): undefined reference to
`xercesc_3_0::XMLUni::fgDOMNamespaces'
Project.cpp:(.text+0x6d8): undefined reference to
`xercesc_3_0::XMLUni::fgDOMDatatypeNormalization'
Project.cpp:(.text+0x6f2): undefined reference to
`xercesc_3_0::XMLUni::fgXercesSchema'
Project.cpp:(.text+0x70c): undefined reference to
`xercesc_3_0::XMLUni::fgXercesSchemaFullChecking'
Project.cpp:(.text+0x726): undefined reference to
`xercesc_3_0::XMLUni::fgXercesIdentityConstraintChecking'
Project.cpp:(.text+0x763): undefined reference to
`xercesc_3_0::XMLUni::fgDOMErrorHandler'
Project.cpp:(.text+0x864): undefined reference to
`xercesc_3_0::XMemory::operator new(unsigned int)'
Project.cpp:(.text+0x872): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0x88c): undefined reference to
`xercesc_3_0::MemBufInputSource::MemBufInputSource(unsigned char const*,
unsigned int, char const*, bool, xercesc_3_0::MemoryManager*)'
Project.cpp:(.text+0x8c4): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0x8dc): undefined reference to
`xercesc_3_0::Wrapper4InputSource::Wrapper4InputSource(xercesc_3_0::InputSource*,
bool, xercesc_3_0::MemoryManager*)'
Project.cpp:(.text+0xb4e): undefined reference to
`xercesc_3_0::XMemory::operator delete(void*)'
Project.cpp:(.text+0xc04): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0xc10): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
Project.cpp:(.text+0xc43): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0xc4f): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
../plugins/basic/libbasic.a(Project.o): In function `Project::Project()':
Project.cpp:(.text+0x340c): undefined reference to
`xercesc_3_0::XMLUni::fgXercescDefaultLocale'
Project.cpp:(.text+0x3412): undefined reference to
`xercesc_3_0::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_3_0::PanicHandler*, xercesc_3_0::MemoryManager*)'
Project.cpp:(.text+0x3513): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0x351f): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
../plugins/basic/libbasic.a(Project.o): In function `Project::~Project()':
Project.cpp:(.text+0x37d4): undefined reference to
`xercesc_3_0::XMLPlatformUtils::Terminate()'
../plugins/basic/libbasic.a(Project.o): In function `Project::Project()':
Project.cpp:(.text+0x3e7c): undefined reference to
`xercesc_3_0::XMLUni::fgXercescDefaultLocale'
Project.cpp:(.text+0x3e82): undefined reference to
`xercesc_3_0::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_3_0::PanicHandler*, xercesc_3_0::MemoryManager*)'
Project.cpp:(.text+0x3f83): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
Project.cpp:(.text+0x3f8f): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
../plugins/basic/libbasic.a(Project.o): In function `Project::~Project()':
Project.cpp:(.text+0x4244): undefined reference to
`xercesc_3_0::XMLPlatformUtils::Terminate()'
../plugins/basic/libbasic.a(Project.o): In function `Project::~Project()':
Project.cpp:(.text+0x4354): undefined reference to
`xercesc_3_0::XMLPlatformUtils::Terminate()'
../plugins/basic/libbasic.a(Project.o):(.data.DW.ref._ZTIN11xercesc_3_012DOMExceptionE[DW.ref._ZTIN11xercesc_3_012DOMExceptionE]+0x0):
undefined reference to `typeinfo for xercesc_3_0::DOMException'
../plugins/basic/libbasic.a(Project.o):(.data.DW.ref._ZTIN11xercesc_3_012XMLExceptionE[DW.ref._ZTIN11xercesc_3_012XMLExceptionE]+0x0):
undefined reference to `typeinfo for xercesc_3_0::XMLException'
../plugins/basic/libbasic.a(XercesDOMErrorHandler.o): In function
`XercesDOMErrorHandler::handleError(xercesc_3_0::DOMError const&)':
XercesDOMErrorHandler.cpp:(.text+0xfe): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
XercesDOMErrorHandler.cpp:(.text+0x11a): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
XercesDOMErrorHandler.cpp:(.text+0x19c): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
XercesDOMErrorHandler.cpp:(.text+0x1b3): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
XercesDOMErrorHandler.cpp:(.text+0x292): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
XercesDOMErrorHandler.cpp:(.text+0x2a9): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
XercesDOMErrorHandler.cpp:(.text+0x322): undefined reference to
`xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
XercesDOMErrorHandler.cpp:(.text+0x339): undefined reference to
`xercesc_3_0::XMLString::transcode(unsigned short const*,
xercesc_3_0::MemoryManager*)'
collect2: ld returned 1 exit status

What did I do wrong?
-- 
Vyacheslav V. Yurkov <uv...@gmail.com>       Team Leader
Norilsk
 Tel: +79069001870

Software Development Department
Joint Stock Company "Channel-7", ISP

Re: XMLString Class and ordinary C-strings

Posted by David Bertoni <db...@apache.org>.
Rackl, Robert G wrote:
> Using the DOMCount sample as a guide, I am developing a module with a
> bunch of subroutines to parse and validate an XML file, and then to
> extract data from it. The subroutines are to be called from Fortran, and
> all output to cerr is to be converted to go to status strings in the
> calls from Fortran. I can parse/validate the document by a call from
> Fortran. I am stuck at converting ordinary plain ASCII null-terminated
> C-strings to XMLStrings and vice versa. How is that done, please?
You generally shouldn't convert the XML document data to UTF-16. 
Instead, let the parser determine the encoding from the data itself.

For output, you should probably convert all UTF-16 strings to UTF-8, to 
preserve data fidelity.  This is usually not a problem, because UTF-8 is 
compatible with US-ASCII.

You might have some issues displaying some strings to the console if 
those strings have characters that aren't supported by the current code 
page, but it's the best compromise to maintain data fidelity.

To transcode from UTF-16 to and from UTF-8, you need a UTF-8 transcoder. 
You should search the archives of the user and developer list, as you 
will find other emails that discuss this topic, along with code snippets.

Dave

RE: XMLString Class and ordinary C-strings

Posted by John Lilley <jl...@datalever.com>.
If they are really ASCII, you can just convert each character to n XMLCh and append them to the string one at the time.

You can also use Xerces' transcoder to transcode from the native locale's 8-bit code page, which unless it is something like EBCDIC will have ASCII as its lower 127 characters.

john

________________________________________
From: Rackl, Robert G [robert.g.rackl@boeing.com]
Sent: Wednesday, July 29, 2009 4:41 PM
To: c-users@xerces.apache.org
Subject: XMLString Class and ordinary C-strings

Using the DOMCount sample as a guide, I am developing a module with a
bunch of subroutines to parse and validate an XML file, and then to
extract data from it. The subroutines are to be called from Fortran, and
all output to cerr is to be converted to go to status strings in the
calls from Fortran. I can parse/validate the document by a call from
Fortran. I am stuck at converting ordinary plain ASCII null-terminated
C-strings to XMLStrings and vice versa. How is that done, please?

  -_r4_\.
___`o-#^o`__

Re: Extracting data from nodes deep down in the hierarchy

Posted by Brian and Victoria <bn...@nc.rr.com>.
You could walk the document nodes using a xerces::DOMTreeWalker and its 
functions...

::nextSibling()
::firstChild()
::nextChild()
::parentNode()

Each of these returns a xerces::DOMNode pointer and you can use its 
functions (e.g., ::getNodeValue()) to extract the node data.

Since your document conforms to a schema, you know how the nodes are 
ordered and nested.


Rackl, Robert G wrote:
> Attached is a sample XML file from which I need to extract data. I am
> using the DOM document approach, learning from the DOMCount sample code.
> I am able to extract the data from the "Identification", "Grid",
> "Solution", and "Results" nodes. I am also able to list the Names of the
> three nodes called "Panel" using the getElementsByTagName method from
> the document root. Where I am running into trouble is extracting the
> attribute data for each element called "Node" [sorry about the use of
> "Node" here for the corners of an aircraft fuselage panel] for a
> particular Panel. What should be the approach here, please? (I tried
> using getElementsByTagName from a "Panel" node - did not work; I tried
> descending down the subtree using child nodes - could not make it work;
> I thought about using filters - did not know where/how to start). Can
> you point me to sample code for the approach you would recommend,
> please?
>
>   -_r4_\.
> ___`o-#^o`__
>   


Extracting data from nodes deep down in the hierarchy

Posted by "Rackl, Robert G" <ro...@boeing.com>.
Attached is a sample XML file from which I need to extract data. I am
using the DOM document approach, learning from the DOMCount sample code.
I am able to extract the data from the "Identification", "Grid",
"Solution", and "Results" nodes. I am also able to list the Names of the
three nodes called "Panel" using the getElementsByTagName method from
the document root. Where I am running into trouble is extracting the
attribute data for each element called "Node" [sorry about the use of
"Node" here for the corners of an aircraft fuselage panel] for a
particular Panel. What should be the approach here, please? (I tried
using getElementsByTagName from a "Panel" node - did not work; I tried
descending down the subtree using child nodes - could not make it work;
I thought about using filters - did not know where/how to start). Can
you point me to sample code for the approach you would recommend,
please?

  -_r4_\.
___`o-#^o`__

Re: XMLString Class and ordinary C-strings

Posted by David Bertoni <db...@apache.org>.
BRM wrote:
> See XMLString::transcode(). Works boths ways. Just remember to use XMLString::release() as well.
> 
> char* myCString = "some string";
> XMLCh* myXMLString = XMLString::transcode(myCString);
> // use it
> ...
> if (myXMLString != NULL) XMLString::release(&myXMLString);
> 
> or
> 
> ...
> const XMLCh* myXMLString = someNode->getTagName();
> char* myCString = XMLString::transcode(myXMLString);
> 
> // use it
> ...
> if (myCString != NULL) XMLString::release(&myCString);
Using XMLString::transcode() is dangerous when you don't know if the 
strings you're transcoding are compatible with the local code page. The 
safest approach is to use UTF-8, since it can represent all Unicode 
characters.

Dave

Re: XMLString Class and ordinary C-strings

Posted by BRM <bm...@yahoo.com>.
See XMLString::transcode(). Works boths ways. Just remember to use XMLString::release() as well.

char* myCString = "some string";
XMLCh* myXMLString = XMLString::transcode(myCString);
// use it
...
if (myXMLString != NULL) XMLString::release(&myXMLString);

or

...
const XMLCh* myXMLString = someNode->getTagName();
char* myCString = XMLString::transcode(myXMLString);

// use it
...
if (myCString != NULL) XMLString::release(&myCString);

Ben


----- Original Message ----
From: "Rackl, Robert G" <ro...@boeing.com>
To: c-users@xerces.apache.org
Sent: Wednesday, July 29, 2009 6:41:26 PM
Subject: XMLString Class and ordinary C-strings

Using the DOMCount sample as a guide, I am developing a module with a
bunch of subroutines to parse and validate an XML file, and then to
extract data from it. The subroutines are to be called from Fortran, and
all output to cerr is to be converted to go to status strings in the
calls from Fortran. I can parse/validate the document by a call from
Fortran. I am stuck at converting ordinary plain ASCII null-terminated
C-strings to XMLStrings and vice versa. How is that done, please?

  -_r4_\.
___`o-#^o`__


XMLString Class and ordinary C-strings

Posted by "Rackl, Robert G" <ro...@boeing.com>.
Using the DOMCount sample as a guide, I am developing a module with a
bunch of subroutines to parse and validate an XML file, and then to
extract data from it. The subroutines are to be called from Fortran, and
all output to cerr is to be converted to go to status strings in the
calls from Fortran. I can parse/validate the document by a call from
Fortran. I am stuck at converting ordinary plain ASCII null-terminated
C-strings to XMLStrings and vice versa. How is that done, please?

  -_r4_\.
___`o-#^o`__

RE: Using Schema in DOMCount

Posted by "Rackl, Robert G" <ro...@boeing.com>.
Thank you, got it to work. ~ shortcut does indeed not work, must use
absolute path. 

  -_r4_\.
___`o-#^o`__

-----Original Message-----
From: Alberto Massari [mailto:amassari@datadirect.com] 
Sent: Monday, July 27, 2009 11:05
To: c-users@xerces.apache.org
Subject: Re: Using Schema in DOMCount

Sorry, my mistake: the correct attribute name is just
xsi:schemaLocation.
If you still get errors, try using an absoluta path, without using the ~
shortcut

Alberto

Rackl, Robert G wrote:
> Thank you, Alberto.
> Modified the command like so:
>
> ./DOMCount.g++ -v=always -n -s -f ~/practice/SamplePanelDat.xml
>
> Modified the first few lines of the input file as follows:
>
> <?xml version="1.0" encoding="UTF-8"?> <PanelData 
> xmlns="http://www.w3schools.com"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:namespaceSchemaLocation="http://www.w3schools.com
> ~/practice/ADINB_PanelData.xsd">
> 	<Identification ID="12345" Case="Sample for demonstrating XML
format, 
> successful aero data extraction, fictitious data"/>
>  
> Schema file not changed.
>
> I am still getting the same errors. Do you see anything else wrong?
>
>   -_r4_\.
> ___`o-#^o`__
>
> -----Original Message-----
> From: Alberto Massari [mailto:amassari@datadirect.com]
> Sent: Monday, July 27, 2009 09:56
> To: c-users@xerces.apache.org
> Subject: Re: Using Schema in DOMCount
>
> Two things are wrong here:
> 1) you need the -n option to enable namespaces
> 2) the schema is for the namespace http://www.w3schools.com, the XML 
> document uses that namespace, but you bind them by using the 
> xsi:noNamespaceSchemaLocation (that should be used for documents that 
> don't use namespaces). You should use an attribute 
> xsi:namespaceSchemaLocation="http://www.w3schools.com
> ~/practice/ADINB_PanelData.xsd"
>
> Alberto
>
> Rackl, Robert G wrote:
>   
>> After having used xml on Windows, I am now trying to use xml in Linux

>> using xerces. I am new to xerces and fairly new to C++. Successfully 
>> compiled the DOMCount sample program. But I am unsuccessful in trying

>> to have DOMCount validate the input xml file using the command
>>
>> ./DOMCount -v=always -s -f ~/practice/SamplePanelDat.xml
>>
>> (tried various combinations of -n, -s, -f options - to no avail)
>>
>> Many errors are reported as if the schema file did not exist (but it 
>> does). The first few lines of the input file are thus:
>>
>> <?xml version="1.0" encoding="UTF-8"?> <PanelData 
>> xmlns="http://www.w3schools.com"
>> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> 	xsi:noNamespaceSchemaLocation="~/practice/ADINB_PanelData.xsd">
>> 	<Identification ID="12345" Case="Sample for demonstrating XML
>>     
> format,
>   
>> successful aero data extraction, fictitious data"/>
>>
>> The first few lines of the schema file ADINB_PanelData.xsd are thus:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!-- edited with XMLSpy v2008 rel. 2 sp1 (http://www.altova.com) by 
>> WILLIAM ANDERSON (BOEING SHARED SERVICES GROUP) --> <xs:schema 
>> xmlns="http://www.w3schools.com"
>> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>> targetNamespace="http://www.w3schools.com"
>> elementFormDefault="qualified" attributeFormDefault="unqualified">
>> 	<xs:element name="PanelData">
>> 		<xs:complexType>
>> 			<xs:sequence>
>> 				<xs:element ref="Identification"/>
>>
>> What's wrong, please?
>>
>>   -_r4_\.
>> ___`o-#^o`__
>>
>>   
>>     
>
>
>   


Re: Using Schema in DOMCount

Posted by Alberto Massari <am...@datadirect.com>.
Sorry, my mistake: the correct attribute name is just xsi:schemaLocation.
If you still get errors, try using an absoluta path, without using the ~ 
shortcut

Alberto

Rackl, Robert G wrote:
> Thank you, Alberto.
> Modified the command like so:
>
> ./DOMCount.g++ -v=always -n -s -f ~/practice/SamplePanelDat.xml
>
> Modified the first few lines of the input file as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <PanelData xmlns="http://www.w3schools.com"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:namespaceSchemaLocation="http://www.w3schools.com
> ~/practice/ADINB_PanelData.xsd">
> 	<Identification ID="12345" Case="Sample for demonstrating XML
> format, successful aero data extraction, fictitious data"/>
>  
> Schema file not changed.
>
> I am still getting the same errors. Do you see anything else wrong?
>
>   -_r4_\.
> ___`o-#^o`__
>
> -----Original Message-----
> From: Alberto Massari [mailto:amassari@datadirect.com] 
> Sent: Monday, July 27, 2009 09:56
> To: c-users@xerces.apache.org
> Subject: Re: Using Schema in DOMCount
>
> Two things are wrong here:
> 1) you need the -n option to enable namespaces
> 2) the schema is for the namespace http://www.w3schools.com, the XML
> document uses that namespace, but you bind them by using the
> xsi:noNamespaceSchemaLocation (that should be used for documents that
> don't use namespaces). You should use an attribute
> xsi:namespaceSchemaLocation="http://www.w3schools.com
> ~/practice/ADINB_PanelData.xsd"
>
> Alberto
>
> Rackl, Robert G wrote:
>   
>> After having used xml on Windows, I am now trying to use xml in Linux 
>> using xerces. I am new to xerces and fairly new to C++. Successfully 
>> compiled the DOMCount sample program. But I am unsuccessful in trying 
>> to have DOMCount validate the input xml file using the command
>>
>> ./DOMCount -v=always -s -f ~/practice/SamplePanelDat.xml
>>
>> (tried various combinations of -n, -s, -f options - to no avail)
>>
>> Many errors are reported as if the schema file did not exist (but it 
>> does). The first few lines of the input file are thus:
>>
>> <?xml version="1.0" encoding="UTF-8"?> <PanelData 
>> xmlns="http://www.w3schools.com"
>> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> 	xsi:noNamespaceSchemaLocation="~/practice/ADINB_PanelData.xsd">
>> 	<Identification ID="12345" Case="Sample for demonstrating XML
>>     
> format, 
>   
>> successful aero data extraction, fictitious data"/>
>>
>> The first few lines of the schema file ADINB_PanelData.xsd are thus:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!-- edited with XMLSpy v2008 rel. 2 sp1 (http://www.altova.com) by 
>> WILLIAM ANDERSON (BOEING SHARED SERVICES GROUP) --> <xs:schema 
>> xmlns="http://www.w3schools.com"
>> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>> targetNamespace="http://www.w3schools.com"
>> elementFormDefault="qualified" attributeFormDefault="unqualified">
>> 	<xs:element name="PanelData">
>> 		<xs:complexType>
>> 			<xs:sequence>
>> 				<xs:element ref="Identification"/>
>>
>> What's wrong, please?
>>
>>   -_r4_\.
>> ___`o-#^o`__
>>
>>   
>>     
>
>
>   


RE: Using Schema in DOMCount

Posted by "Rackl, Robert G" <ro...@boeing.com>.
Thank you, Alberto.
Modified the command like so:

./DOMCount.g++ -v=always -n -s -f ~/practice/SamplePanelDat.xml

Modified the first few lines of the input file as follows:

<?xml version="1.0" encoding="UTF-8"?>
<PanelData xmlns="http://www.w3schools.com"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:namespaceSchemaLocation="http://www.w3schools.com
~/practice/ADINB_PanelData.xsd">
	<Identification ID="12345" Case="Sample for demonstrating XML
format, successful aero data extraction, fictitious data"/>
 
Schema file not changed.

I am still getting the same errors. Do you see anything else wrong?

  -_r4_\.
___`o-#^o`__

-----Original Message-----
From: Alberto Massari [mailto:amassari@datadirect.com] 
Sent: Monday, July 27, 2009 09:56
To: c-users@xerces.apache.org
Subject: Re: Using Schema in DOMCount

Two things are wrong here:
1) you need the -n option to enable namespaces
2) the schema is for the namespace http://www.w3schools.com, the XML
document uses that namespace, but you bind them by using the
xsi:noNamespaceSchemaLocation (that should be used for documents that
don't use namespaces). You should use an attribute
xsi:namespaceSchemaLocation="http://www.w3schools.com
~/practice/ADINB_PanelData.xsd"

Alberto

Rackl, Robert G wrote:
> After having used xml on Windows, I am now trying to use xml in Linux 
> using xerces. I am new to xerces and fairly new to C++. Successfully 
> compiled the DOMCount sample program. But I am unsuccessful in trying 
> to have DOMCount validate the input xml file using the command
>
> ./DOMCount -v=always -s -f ~/practice/SamplePanelDat.xml
>
> (tried various combinations of -n, -s, -f options - to no avail)
>
> Many errors are reported as if the schema file did not exist (but it 
> does). The first few lines of the input file are thus:
>
> <?xml version="1.0" encoding="UTF-8"?> <PanelData 
> xmlns="http://www.w3schools.com"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:noNamespaceSchemaLocation="~/practice/ADINB_PanelData.xsd">
> 	<Identification ID="12345" Case="Sample for demonstrating XML
format, 
> successful aero data extraction, fictitious data"/>
>
> The first few lines of the schema file ADINB_PanelData.xsd are thus:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- edited with XMLSpy v2008 rel. 2 sp1 (http://www.altova.com) by 
> WILLIAM ANDERSON (BOEING SHARED SERVICES GROUP) --> <xs:schema 
> xmlns="http://www.w3schools.com"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://www.w3schools.com"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> 	<xs:element name="PanelData">
> 		<xs:complexType>
> 			<xs:sequence>
> 				<xs:element ref="Identification"/>
>
> What's wrong, please?
>
>   -_r4_\.
> ___`o-#^o`__
>
>   


Re: Using Schema in DOMCount

Posted by Alberto Massari <am...@datadirect.com>.
Two things are wrong here:
1) you need the -n option to enable namespaces
2) the schema is for the namespace http://www.w3schools.com, the XML 
document uses that namespace, but you bind them by using the 
xsi:noNamespaceSchemaLocation (that should be used for documents that 
don't use namespaces). You should use an attribute 
xsi:namespaceSchemaLocation="http://www.w3schools.com 
~/practice/ADINB_PanelData.xsd"

Alberto

Rackl, Robert G wrote:
> After having used xml on Windows, I am now trying to use xml in Linux
> using xerces. I am new to xerces and fairly new to C++. Successfully
> compiled the DOMCount sample program. But I am unsuccessful in trying to
> have DOMCount validate the input xml file using the command
>
> ./DOMCount -v=always -s -f ~/practice/SamplePanelDat.xml
>
> (tried various combinations of -n, -s, -f options - to no avail)
>
> Many errors are reported as if the schema file did not exist (but it
> does). The first few lines of the input file are thus:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <PanelData xmlns="http://www.w3schools.com"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:noNamespaceSchemaLocation="~/practice/ADINB_PanelData.xsd">
> 	<Identification ID="12345" Case="Sample for demonstrating XML
> format, successful aero data extraction, fictitious data"/>
>
> The first few lines of the schema file ADINB_PanelData.xsd are thus:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- edited with XMLSpy v2008 rel. 2 sp1 (http://www.altova.com) by
> WILLIAM ANDERSON (BOEING SHARED SERVICES GROUP) -->
> <xs:schema xmlns="http://www.w3schools.com"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://www.w3schools.com"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> 	<xs:element name="PanelData">
> 		<xs:complexType>
> 			<xs:sequence>
> 				<xs:element ref="Identification"/>
>
> What's wrong, please?
>
>   -_r4_\.
> ___`o-#^o`__
>
>   


Using Schema in DOMCount

Posted by "Rackl, Robert G" <ro...@boeing.com>.
After having used xml on Windows, I am now trying to use xml in Linux
using xerces. I am new to xerces and fairly new to C++. Successfully
compiled the DOMCount sample program. But I am unsuccessful in trying to
have DOMCount validate the input xml file using the command

./DOMCount -v=always -s -f ~/practice/SamplePanelDat.xml

(tried various combinations of -n, -s, -f options - to no avail)

Many errors are reported as if the schema file did not exist (but it
does). The first few lines of the input file are thus:

<?xml version="1.0" encoding="UTF-8"?>
<PanelData xmlns="http://www.w3schools.com"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="~/practice/ADINB_PanelData.xsd">
	<Identification ID="12345" Case="Sample for demonstrating XML
format, successful aero data extraction, fictitious data"/>

The first few lines of the schema file ADINB_PanelData.xsd are thus:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 rel. 2 sp1 (http://www.altova.com) by
WILLIAM ANDERSON (BOEING SHARED SERVICES GROUP) -->
<xs:schema xmlns="http://www.w3schools.com"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3schools.com"
elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="PanelData">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="Identification"/>

What's wrong, please?

  -_r4_\.
___`o-#^o`__

Re: Several questions about Xerces-3.0

Posted by Alberto Massari <am...@datadirect.com>.
Same as for ICU: plain socket requires no external libraries, but it 
supports a very limited set of HTTP (no proxy resolving, no 
authentication, no compression, etc... it barely supports redirection); 
libcurl requires cUrl to be availbale, but it handles the full HTTP specs.

Alberto

Vyacheslav V. Yurkov wrote:
> 2009/7/27 Alberto Massari <am...@datadirect.com>
>
>   
>> ICU gives you the capability of processing a lot more encodings than the
>> plain Xerces, but it requires you to bundle an external library that is
>> pretty big.
>> Did you add the -L<xerces path> -lxerces-c options to the link command line
>> ?
>>
>> Alberto
>>
>> Hi Alberto,
>>     
> thank you for your answer.
>
> I figured out what the problem was. Yes, I added -lxerces-c option but it
> was added at the beginning of the libraries list. I add it to the end of the
> list and application links with no errors.
> Can you also clarify the difference between plain sockets and libcurl?
>   


Re: Several questions about Xerces-3.0

Posted by "Vyacheslav V. Yurkov" <uv...@gmail.com>.
2009/7/27 Alberto Massari <am...@datadirect.com>

> ICU gives you the capability of processing a lot more encodings than the
> plain Xerces, but it requires you to bundle an external library that is
> pretty big.
> Did you add the -L<xerces path> -lxerces-c options to the link command line
> ?
>
> Alberto
>
> Hi Alberto,
thank you for your answer.

I figured out what the problem was. Yes, I added -lxerces-c option but it
was added at the beginning of the libraries list. I add it to the end of the
list and application links with no errors.
Can you also clarify the difference between plain sockets and libcurl?
-- 
Vyacheslav V. Yurkov <uv...@gmail.com>       Team Leader
Norilsk
 Tel: +79069001870

Software Development Department
Joint Stock Company "Channel-7", ISP

How to createElement from CString variable

Posted by Rupanu Ranjaneswar <ru...@yahoo.com>.
I have a CString variable and when I invoke createElement it crashes.(I am using VC++ 6.0)Code snippet given below..
XMLCh* elementTag = strMyCString.AllocSysString();pElement = pDOMDocument->createElement(elementTag);



      

Re: Several questions about Xerces-3.0

Posted by Alberto Massari <am...@datadirect.com>.
ICU gives you the capability of processing a lot more encodings than the 
plain Xerces, but it requires you to bundle an external library that is 
pretty big.
Did you add the -L<xerces path> -lxerces-c options to the link command 
line ?

Alberto


Vyacheslav V. Yurkov wrote:
> Hi,
> I'm using Xerces-c-3.0 in my project under Linux. I have several questions.
> 1. What are pros and cons of using ICU library as a Transcoder?
> 2. I want to create a static version of my application.
>   I compiled Xerces with parameters *--enable-static --disable-shared*.
>   But when I try to compile my application I get following linker's errors:
>
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
> `xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()':
> BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD0Ev[xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()]+0x24):
> undefined reference to `xercesc_3_0::XMLEntityDecl::~XMLEntityDecl()'
> BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD0Ev[xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()]+0x2c):
> undefined reference to `xercesc_3_0::XMemory::operator delete(void*)'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
> `xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()':
> BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013DTDEntityDeclD1Ev[xercesc_3_0::DTDEntityDecl::~DTDEntityDecl()]+0x23):
> undefined reference to `xercesc_3_0::XMLEntityDecl::~XMLEntityDecl()'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
> `xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
> const&)':
> BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
> const&)]+0x35): undefined reference to
> `xercesc_3_0::SAXParseException::SAXParseException(xercesc_3_0::SAXParseException
> const&)'
> BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
> const&)]+0x3e): undefined reference to
> `xercesc_3_0::SAXParseException::~SAXParseException()'
> BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_011HandlerBase10fatalErrorERKNS_17SAXParseExceptionE[xercesc_3_0::HandlerBase::fatalError(xercesc_3_0::SAXParseException
> const&)]+0x45): undefined reference to `typeinfo for
> xercesc_3_0::SAXParseException'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o): In function
> `xercesc_3_0::XMLAttDefList::~XMLAttDefList()':
> BasicProjectPlugin.cpp:(.text._ZN11xercesc_3_013XMLAttDefListD0Ev[xercesc_3_0::XMLAttDefList::~XMLAttDefList()]+0x23):
> undefined reference to `xercesc_3_0::XMemory::operator delete(void*)'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013DTDEntityDeclE[vtable
> for xercesc_3_0::DTDEntityDecl]+0x10): undefined reference to
> `xercesc_3_0::DTDEntityDecl::isSerializable() const'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013DTDEntityDeclE[vtable
> for xercesc_3_0::DTDEntityDecl]+0x14): undefined reference to
> `xercesc_3_0::DTDEntityDecl::serialize(xercesc_3_0::XSerializeEngine&)'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013DTDEntityDeclE[vtable
> for xercesc_3_0::DTDEntityDecl]+0x18): undefined reference to
> `xercesc_3_0::DTDEntityDecl::getProtoType() const'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013XMLAttDefListE[vtable
> for xercesc_3_0::XMLAttDefList]+0x10): undefined reference to
> `xercesc_3_0::XMLAttDefList::isSerializable() const'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013XMLAttDefListE[vtable
> for xercesc_3_0::XMLAttDefList]+0x14): undefined reference to
> `xercesc_3_0::XMLAttDefList::serialize(xercesc_3_0::XSerializeEngine&)'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTVN11xercesc_3_013XMLAttDefListE[vtable
> for xercesc_3_0::XMLAttDefList]+0x18): undefined reference to
> `xercesc_3_0::XMLAttDefList::getProtoType() const'
> ../plugins/basic/libbasic.a(BasicProjectPlugin.o):(.data.rel.ro._ZTIN11xercesc_3_013DTDEntityDeclE[typeinfo
> for xercesc_3_0::DTDEntityDecl]+0x8): undefined reference to `typeinfo for
> xercesc_3_0::XMLEntityDecl'
> ../plugins/basic/libbasic.a(Project.o): In function
> `Project::validateSchema()':
> Project.cpp:(.text+0x652): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0x66a): undefined reference to
> `xercesc_3_0::XMLString::transcode(char const*, unsigned short*, unsigned
> int, xercesc_3_0::MemoryManager*)'
> Project.cpp:(.text+0x672): undefined reference to
> `xercesc_3_0::DOMImplementationRegistry::getDOMImplementation(unsigned short
> const*)'
> Project.cpp:(.text+0x681): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0x6a4): undefined reference to
> `xercesc_3_0::XMLUni::fgDOMValidateIfSchema'
> Project.cpp:(.text+0x6be): undefined reference to
> `xercesc_3_0::XMLUni::fgDOMNamespaces'
> Project.cpp:(.text+0x6d8): undefined reference to
> `xercesc_3_0::XMLUni::fgDOMDatatypeNormalization'
> Project.cpp:(.text+0x6f2): undefined reference to
> `xercesc_3_0::XMLUni::fgXercesSchema'
> Project.cpp:(.text+0x70c): undefined reference to
> `xercesc_3_0::XMLUni::fgXercesSchemaFullChecking'
> Project.cpp:(.text+0x726): undefined reference to
> `xercesc_3_0::XMLUni::fgXercesIdentityConstraintChecking'
> Project.cpp:(.text+0x763): undefined reference to
> `xercesc_3_0::XMLUni::fgDOMErrorHandler'
> Project.cpp:(.text+0x864): undefined reference to
> `xercesc_3_0::XMemory::operator new(unsigned int)'
> Project.cpp:(.text+0x872): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0x88c): undefined reference to
> `xercesc_3_0::MemBufInputSource::MemBufInputSource(unsigned char const*,
> unsigned int, char const*, bool, xercesc_3_0::MemoryManager*)'
> Project.cpp:(.text+0x8c4): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0x8dc): undefined reference to
> `xercesc_3_0::Wrapper4InputSource::Wrapper4InputSource(xercesc_3_0::InputSource*,
> bool, xercesc_3_0::MemoryManager*)'
> Project.cpp:(.text+0xb4e): undefined reference to
> `xercesc_3_0::XMemory::operator delete(void*)'
> Project.cpp:(.text+0xc04): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0xc10): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> Project.cpp:(.text+0xc43): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0xc4f): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> ../plugins/basic/libbasic.a(Project.o): In function `Project::Project()':
> Project.cpp:(.text+0x340c): undefined reference to
> `xercesc_3_0::XMLUni::fgXercescDefaultLocale'
> Project.cpp:(.text+0x3412): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::Initialize(char const*, char const*,
> xercesc_3_0::PanicHandler*, xercesc_3_0::MemoryManager*)'
> Project.cpp:(.text+0x3513): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0x351f): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> ../plugins/basic/libbasic.a(Project.o): In function `Project::~Project()':
> Project.cpp:(.text+0x37d4): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::Terminate()'
> ../plugins/basic/libbasic.a(Project.o): In function `Project::Project()':
> Project.cpp:(.text+0x3e7c): undefined reference to
> `xercesc_3_0::XMLUni::fgXercescDefaultLocale'
> Project.cpp:(.text+0x3e82): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::Initialize(char const*, char const*,
> xercesc_3_0::PanicHandler*, xercesc_3_0::MemoryManager*)'
> Project.cpp:(.text+0x3f83): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> Project.cpp:(.text+0x3f8f): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> ../plugins/basic/libbasic.a(Project.o): In function `Project::~Project()':
> Project.cpp:(.text+0x4244): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::Terminate()'
> ../plugins/basic/libbasic.a(Project.o): In function `Project::~Project()':
> Project.cpp:(.text+0x4354): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::Terminate()'
> ../plugins/basic/libbasic.a(Project.o):(.data.DW.ref._ZTIN11xercesc_3_012DOMExceptionE[DW.ref._ZTIN11xercesc_3_012DOMExceptionE]+0x0):
> undefined reference to `typeinfo for xercesc_3_0::DOMException'
> ../plugins/basic/libbasic.a(Project.o):(.data.DW.ref._ZTIN11xercesc_3_012XMLExceptionE[DW.ref._ZTIN11xercesc_3_012XMLExceptionE]+0x0):
> undefined reference to `typeinfo for xercesc_3_0::XMLException'
> ../plugins/basic/libbasic.a(XercesDOMErrorHandler.o): In function
> `XercesDOMErrorHandler::handleError(xercesc_3_0::DOMError const&)':
> XercesDOMErrorHandler.cpp:(.text+0xfe): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> XercesDOMErrorHandler.cpp:(.text+0x11a): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> XercesDOMErrorHandler.cpp:(.text+0x19c): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> XercesDOMErrorHandler.cpp:(.text+0x1b3): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> XercesDOMErrorHandler.cpp:(.text+0x292): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> XercesDOMErrorHandler.cpp:(.text+0x2a9): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> XercesDOMErrorHandler.cpp:(.text+0x322): undefined reference to
> `xercesc_3_0::XMLPlatformUtils::fgMemoryManager'
> XercesDOMErrorHandler.cpp:(.text+0x339): undefined reference to
> `xercesc_3_0::XMLString::transcode(unsigned short const*,
> xercesc_3_0::MemoryManager*)'
> collect2: ld returned 1 exit status
>
> What did I do wrong?
>