[Libxmlplusplus-general] DomParser behaviour



When calling parse_memory with the following string:
<?xml version="1.0"?>
<methodCall>
<methodName>methodname</methodName>
	<params>
		<param>
			<value>
				<struct>
					<member>
						<name>test</name>
						<value><int>4</int></value>
					</member>
					<member>
						<name>test2</name>
						<value><int>4</int></value>
					</member>
				</struct>
			</value>
		</param>
	</params>
</methodCall>

...I get the following from the parser:
<?xml version="1.0"?>
<methodCall>
	<methodName>
		<text>methodname</text>
	</methodName>
		<params>
			<param>
				<value>
					<struct>
						<member>
							<name><text>test</text></name>
							<value><int><text>4</text></int></value>
						</member>
						<member>
							<name><text>test2</text></name>
							<value><int><text>4</text></int></value>
						</member>
					</struct>
				</value>
			</param>
		</params>
</methodCall>

As you can see, every content of the original xml-string is put into a 
<text></text> tag. Is this intended, and if it is, why?

Have a nice day!
Jone Marius Vignes




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]