mr_suleyman
31st January 2007, 11:17
Hi All Dear Friend,
I am very new in XML world and I try to parse XML file. I looked at some threads about XML and used some codes for reading XML. But Each time I got
"Running Low on memory, Connection with server Lost". I found a thread like my case. But I don't understand main reason for this. Our server is very new. I don't think that this is memory error. It is about XML operations.
long input_file_id
long xml_id, identId,retVal
long texts_enum, enum_node, textnode
String text_data(100)
String error_string(100),messageID(100),messageClass(100),subject(100)
|Open the XML file for reading.
input_file_id = seq.open ("/users/xuser/file.xml", "r" )
|Parse the XML file
xml_id = xmlRead(input_file_id, error_string)
seq.close(input_file_id)
| Start at the first node
identId = 0
identId = xmlFindFirst( "IDENTIFICATION", xml_id)
****
****
****
When I debug this code . I am waiting on identId = xmlFindFirst( "IDENTIFICATION", xml_id) and I get error I said. Additionally, My xml encoding is <?xml version="1.0" encoding="ISO-8859-1" ?>
. If the solution is encoding conversion, How can provide data accuracy.I have no luxury in any data lost due to encoding conversion.
How Can I Handle This Problem ?
Thanks ....
Thank you.
I am very new in XML world and I try to parse XML file. I looked at some threads about XML and used some codes for reading XML. But Each time I got
"Running Low on memory, Connection with server Lost". I found a thread like my case. But I don't understand main reason for this. Our server is very new. I don't think that this is memory error. It is about XML operations.
long input_file_id
long xml_id, identId,retVal
long texts_enum, enum_node, textnode
String text_data(100)
String error_string(100),messageID(100),messageClass(100),subject(100)
|Open the XML file for reading.
input_file_id = seq.open ("/users/xuser/file.xml", "r" )
|Parse the XML file
xml_id = xmlRead(input_file_id, error_string)
seq.close(input_file_id)
| Start at the first node
identId = 0
identId = xmlFindFirst( "IDENTIFICATION", xml_id)
****
****
****
When I debug this code . I am waiting on identId = xmlFindFirst( "IDENTIFICATION", xml_id) and I get error I said. Additionally, My xml encoding is <?xml version="1.0" encoding="ISO-8859-1" ?>
. If the solution is encoding conversion, How can provide data accuracy.I have no luxury in any data lost due to encoding conversion.
How Can I Handle This Problem ?
Thanks ....
Thank you.