[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Special String in XML file.
I have a XML document that I am receiving that a package that is
inside a soap envelope.
Using the EXAMPLE17 that is included in the HTTP downloads I can see
how to process and extract the inside package but it has strings
instead of special characters.
It has
< = <
> = >
" = "
Is there a way to tell Expat using the HTTP api's to recognize these
strings as the symbols or does it just recognize them as such (PC
editors don't seem to) or am I going to have to read the file through
and write back with symbols?
Thanks for the help.
Operation Result is the inside package.
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:ServiceResponse
xmlns:ns2="http://stem.startrak.com/gw/">
<status>0</status>
<sessionId>-5701ce8f:12f9516f837:-396d</sessionId>
<operationResult><?xml version="1.0"
encoding="UTF-8" standalone="yes"?>
<ns2:StMessage
xmlns:ns2="http://ramp.startrak.com/RAMP.1.0.0/">
<status>0</status>
<messageTypes>REEFER_STATUS</messageTypes>
<messageCount>1</messageCount>
<queueStatus>MORE_DATA</queueStatus>
<ReeferStatusMessage>
<asset>
<assetName>ENGZ30280</assetName>
<assetState>1</assetState>
<config>
<microConfig>
<microManufacturer>1</microManufacturer>
<microModel>3</microModel>
<microType>1</microType>
<compartmentCount>1</compartmentCount>
</microConfig>
<rtConfig>
<unitSerialNumber>GCTH001730</unitSerialNumber>
<unitFirmwareRelease>W0096</unitFirmwareRelease>
<unitFirmwareVersion>3.52</unitFirmwareVersion>
</rtConfig>
</config>
</asset>
<reeferStatus>
<alerts>
<batteryAlert>0</batteryAlert>
<fuelAlert>0</fuelAlert>
<pmAlert>1</pmAlert>
<temp1Alert>0</temp1Alert>
<temp2Alert>0</temp2Alert>
<temp3Alert>0</temp3Alert>
</alerts>
<ambientTemp>89.6</ambientTemp>
<batteryVoltage>12.5</batteryVoltage>
<compartmentStatus>
<number>1</number>
<setpointTemp>-10.0</setpointTemp>
</compartmentStatus>
<door1Status>-1</door1Status>
<door2Status>0</door2Status>
<engineHours>13505</engineHours>
<event>
<eventCode>35044</eventCode>
<eventType>0</eventType>
</event>
<fuel>74.0</fuel>
<gps>
<city>WARREN</city>
<geofence>
<geofenceId>0</geofenceId>
</geofence>
<latitude>41.17205858</latitude>
<longitude>-80.80940008</longitude>
<state>OH</state>
</gps>
<hookStatus>-1</hookStatus>
<intelliset>
<intellisetCode>-1</intellisetCode>
<intellisetState>1</intellisetState>
</intelliset>
<messageStamp>2011-04-27T13:54:59.000Z</messageStamp>
<reeferAlarmStatus>0</reeferAlarmStatus>
<reeferMoveStatus>1</reeferMoveStatus>
<serviceState>3</serviceState>
<standbyHours>0</standbyHours>
<switchOnHours>23475</switchOnHours>
<reeferPower>0</reeferPower>
</reeferStatus>
<systemStatus>
<correlationId>1001</correlationId>
<isRedelivered>false</isRedelivered>
<numberOfRetries>1</numberOfRetries>
<queuedStamp>2011-04-27T14:00:46.292Z</queuedStamp>
</systemStatus>
</ReeferStatusMessage>
</ns2:StMessage> </operationResult>
</ns2:ServiceResponse>
</S:Body>
</S:Envelope>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------