AS3.0 & Read XML node to modify a complex xml file is deleted to hide the node attributes of nodes

2010-04-15  来源:本站原创  分类:Flash  人气:304 

Tree.mxml documents:

<? Xml version = "1.0" encoding = "utf-8"?>
<Mx: Application xmlns: mx = " http://www.adobe.com/2006/mxml "creationComplete =" menu.send (); "Layout =" absolute ">
<mx:Script>
<! [CDATA [
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
[Bindable]
private var myData: ArrayCollection;
private var menus2: XML;
private var results: XMLList;
private function resultHandler (event: ResultEvent): void (
menus2 = XML (event.result);
/ / Proto child node and children nodes (that is, Field node) xml object collection
var list: XMLList = menus2.packet.proto.descendants ("*");
/ / Remove the node hide
for (var i: int = 0; i <list.length (); i + +) (
if (list [i]. @ hide == "yes") (
delete list [i]; / / delete the field in the attribute hide == yes the field node
)
/ / Objects in the list Xiadi i have showname property
var li: XMLList = list [i]. attribute ("showname");
if (li.length () == 0) (/ / do not showname property
/ / Add a showname show the value of the property value is
list [i]. @ showname = list [i]. @ show;
)
)
/ / Remove does not delete the (should be some data on the hide is yes, but not deleted, the specific reasons not yet clear, so to delete a row twice)
var lis: XMLList = menus2.packet.proto.descendants ("*");
for (var k: int = 0; k <lis.length (); k + +) (
if (lis [k]. @ hide == "yes") (
delete lis [k]; / / delete the field in the attribute hide of field nodes
)
)
/ / Remove not deleted again
var lis3: XMLList = menus2.packet.proto.descendants ("*");
for (var n: int = 0; n <lis3.length (); n + +) (
if (lis3 [n]. @ hide == "yes") (
delete lis3 [n]; / / delete the field in the attribute hide of field nodes
)
)
/ / Additional attributes (called the hello property value is helloword
/ / Menus2.packet.proto.field [0]. @ Hello = "helloword";
var results: XMLList = menus2.packet.proto;
/ / Will be bound to the tree on the set
treeMenu.dataProvider = results;
)

]]>
</ Mx: Script>
<mx:HTTPService url="erb1.xml" result="resultHandler(event)" resultFormat="xml" />
<mx:Tree labelField="@showname" width="50%" height="100%">
</ Mx: Tree>
</ Mx: Application>
erb1.xml documents:

<? Xml version = "1.0"?>
<pdml version="0" creator="wireshark/1.0.8">
<packet>
<proto name="geninfo" pos="0" showname="General information" size="115">
<field name="num" pos="0" show="1" showname="Number" value="1" size="115"/>
<field name="len" pos="0" show="115" showname="Packet Length" value="73" size="115"/>
<field name="caplen" pos="0" show="115" showname="Captured Length" value="73" size="115"/>
<field name="timestamp" pos="0" show="Dec 29, 2009 22:28:38.971758000" showname="Captured Time" value="1262096918.971758000" size="115"/>
</ Proto>
<proto name="frame" showname="Frame 1 (115 bytes on wire, 115 bytes captured)" size="115" pos="0">
<field name="frame.time" showname="Arrival Time: Dec 29, 2009 22:28:38.971758000" size="0" pos="0" show="Dec 29, 2009 22:28:38.971758000"/>
<field name="frame.time_delta" showname="Time delta from previous captured frame: 0.000000000 seconds" size="0" pos="0" show="0.000000000"/>
<field name="frame.time_delta_displayed" showname="Time delta from previous displayed frame: 0.000000000 seconds" size="0" pos="0" show="0.000000000"/>
<field name="frame.time_relative" showname="Time since reference or first frame: 0.000000000 seconds" size="0" pos="0" show="0.000000000"/>
<field name="frame.number" showname="Frame Number: 1" size="0" pos="0" show="1"/>
<field name="frame.pkt_len" showname="Packet Length: 115 bytes" hide="yes" size="0" pos="0" show="115"/>
<field name="frame.len" showname="Frame Length: 115 bytes" size="0" pos="0" show="115"/>
<field name="frame.cap_len" showname="Capture Length: 115 bytes" size="0" pos="0" show="115"/>
<field name="frame.marked" showname="Frame is marked: False" size="0" pos="0" show="0"/>
<Field name = "frame.protocols" showname = "Protocols in frame: mtp2: mtp3: sccp: tcap: camel: camel" size = "0" pos = "0" show = "mtp2: mtp3: sccp: tcap: camel : camel "/>
</ Proto>
<proto name="mtp2" showname="Message Transfer Part Level 2" size="6" pos="0">
<Field name = "mtp2.bsn" showname =".... 0111 1110 0000 = Backward sequence number: 2016 "size =" 2 "pos =" 0 "show =" 2016 "value =" 7E0 "unmaskedvalue =" e007 "/>
<Field name = "mtp2.res" showname = ".000 .... .... .... = Reserved: 0" size = "2" pos = "0" show = "0" value = "0 "unmaskedvalue =" e007 "/>
<Field name = "mtp2.bib" showname = "0 ... .... .... .... = Backward indicator bit: 0" size = "2" pos = "0" show = "0" value = "0" unmaskedvalue = "e007" />
<Field name = "mtp2.fsn" showname =".... 0001 1010 0010 = Forward sequence number: 418 "size =" 2 "pos =" 2 "show =" 418 "value =" 1A2 "unmaskedvalue =" a201 "/>
<Field name = "mtp2.res" showname = ".000 .... .... .... = Reserved: 0" size = "2" pos = "0" show = "0" value = "0 "unmaskedvalue =" e007 "/>
<Field name = "mtp2.fib" showname = "0 ... .... .... .... = Forward indicator bit: 0" size = "2" pos = "2" show = "0" value = "0" unmaskedvalue = "a201" />
<Field name = "mtp2.li" showname =".... ... 0 0110 1101 = Length Indicator: 109 "size =" 2 "pos =" 4 "show =" 109 "value =" 6D "unmaskedvalue = "6d00" />
<Field name = "mtp2.spare" showname = "0000 000. .... .... = Spare: 0" size = "2" pos = "4" show = "0" value = "0" unmaskedvalue = "6d00" />
</ Proto>
<proto name="mtp3" showname="Message Transfer Part Level 3" size="8" pos="6">
<field name="" show="Service information octet" size="1" pos="6" value="83">
<Field name = "mtp3.network_indicator" showname = "10 .. .... = Network indicator: National network (0x02)" size = "1" pos = "6" show = "0x02" value = "2" unmaskedvalue = "83" />
<Field name = "mtp3.spare" showname = ".. 00 .... = Spare: 0x00" size = "1" pos = "6" show = "0x00" value = "0" unmaskedvalue = "83" / >
<Field name = "mtp3.service_indicator" showname =".... 0011 = Service indicator: SCCP (0x03) "size =" 1 "pos =" 6 "show =" 0x03 "value =" 3 "unmaskedvalue =" 83 "/>
</ Field>
<field name="" show="Routing label" size="7" pos="7" value="eeff130eff130a">
<Field name = "mtp3.chinese_dpc" showname = "DPC: 19-255-238 (1310702) (0x13ffee)" size = "3" pos = "7" show = "19-255-238" value = "eeff13" >
<Field name = "mtp3.dpc.network" showname = "0001 0011 .... .... .... .... = DPC Network: 19" size = "1" pos = "9" show = "19" value = "13" unmaskedvalue = "13" />
<Field name = "mtp3.dpc.cluster" showname =".... .... 1111 1111 .... .... = DPC Cluster: 255 "size =" 1 "pos =" 8 "show = "255" value = "FF" unmaskedvalue = "ff" />
<Field name = "mtp3.dpc.member" showname =".... .... .... .... 1110 1110 = DPC Member: 238 "size =" 1 "pos =" 7 "show = "238" value = "EE" unmaskedvalue = "ee" />
<Field name = "mtp3.dpc" showname =".... .... 0001 0011 1111 1111 1110 1110 = DPC: 1310702 "hide =" yes "size =" 3 "pos =" 7 "show =" 1310702 "value =" 13FFEE "unmaskedvalue =" eeff13 "/>
<Field name = "mtp3.pc" showname =".... .... 0001 0011 1111 1111 1110 1110 = PC: 1310702 "hide =" yes "size =" 3 "pos =" 7 "show =" 1310702 "value =" 13FFEE "unmaskedvalue =" eeff13 "/>
</ Field>
<field name="mtp3.chinese_dpc" showname="DPC: 1310702" hide="yes" size="3" pos="7" show="1310702" value="eeff13"/>
<field name="mtp3.chinese_dpc" showname="DPC: 0x13ffee" hide="yes" size="3" pos="7" show="0x13ffee" value="eeff13"/>
<Field name = "mtp3.chinese_opc" showname = "OPC: 19-255-14 (1310478) (0x13ff0e)" size = "3" pos = "10" show = "19-255-14" value = "0eff13" >
<Field name = "mtp3.opc.network" showname = "0001 0011 .... .... .... .... = OPC Network: 19" size = "1" pos = "12" show = "19" value = "13" unmaskedvalue = "13" />
<Field name = "mtp3.opc.cluster" showname =".... .... 1111 1111 .... .... = OPC Cluster: 255 "size =" 1 "pos =" 11 "show = "255" value = "FF" unmaskedvalue = "ff" />
<Field name = "mtp3.opc.member" showname =".... .... .... .... 0000 1110 = OPC Member: 14 "size =" 1 "pos =" 10 "show = "14" value = "E" unmaskedvalue = "0e" />
<Field name = "mtp3.opc" showname =".... .... 0001 0011 1111 1111 0000 1110 = OPC: 1310478 "hide =" yes "size =" 3 "pos =" 10 "show =" 1310478 "value =" 13FF0E "unmaskedvalue =" 0eff13 "/>
<Field name = "mtp3.pc" showname =".... .... 0001 0011 1111 1111 0000 1110 = PC: 1310478 "hide =" yes "size =" 3 "pos =" 10 "show =" 1310478 "value =" 13FF0E "unmaskedvalue =" 0eff13 "/>
</ Field>
<field name="mtp3.chinese_opc" showname="OPC: 1310478" hide="yes" size="3" pos="10" show="1310478" value="0eff13"/>
<field name="mtp3.chinese_opc" showname="OPC: 0x13ff0e" hide="yes" size="3" pos="10" show="0x13ff0e" value="0eff13"/>
<Field name = "mtp3.sls" showname =".... 1010 = Signalling Link Selector: 10 "size =" 1 "pos =" 13 "show =" 10 "value =" A "unmaskedvalue =" 0a "/ >
</ Field>
</ Proto>
<proto name="sccp" showname="Signalling Connection Control Part" size="101" pos="14">
<field name="sccp.message_type" showname="Message Type: Unitdata (0x09)" size="1" pos="14" show="0x09" value="09"/>
<field name="sccp.class" showname=".... 0001 = Class: 0x01" size="1" pos="15" show="0x01" value="1" unmaskedvalue="01"/>
<Field name = "sccp.handling" showname = "0000 .... = Message handling: No special options (0x00)" size = "1" pos = "15" show = "0x00" value = "0" unmaskedvalue = "01" />
<field name="sccp.variable_pointer1" showname="Pointer to first Mandatory Variable parameter: 3" size="1" pos="16" show="3" value="03"/>
<field name="sccp.variable_pointer2" showname="Pointer to second Mandatory Variable parameter: 13" size="1" pos="17" show="13" value="0d"/>
<field name="sccp.variable_pointer3" showname="Pointer to third Mandatory Variable parameter: 23" size="1" pos="18" show="23" value="17"/>
<field name="" show="Called Party address (10 bytes)" size="10" pos="20" value="52920012046831472762">
<field name="" show="Address Indicator" size="1" pos="20" value="52">
<Field name = "sccp.called.ri" showname = ".1 .. .... = Routing Indicator: Route on SSN (0x01)" size = "1" pos = "20" show = "0x01" value = "1" unmaskedvalue = "52" />
<Field name = "sccp.called.gti" showname = ".. 01 00 .. = Global Title Indicator: Translation Type, Numbering Plan, Encoding Scheme, and Nature of Address Indicator included (0x04)" size = "1" pos = "20" show = "0x04" value = "4" unmaskedvalue = "52" />
<Field name = "sccp.called.ssni" showname =".... .. 1. = SubSystem Number Indicator: SSN present (0x01) "size =" 1 "pos =" 20 "show =" 0x01 "value = "1" unmaskedvalue = "52" />
<Field name = "sccp.called.pci" showname =".... ... 0 = Point Code Indicator: Point Code not present (0x00) "size =" 1 "pos =" 20 "show =" 0x00 " value = "0" unmaskedvalue = "52" />
</ Field>
<field name="sccp.called.ssn" showname="SubSystem Number: CAP (146)" size="1" pos="21" show="146" value="92"/>
<field name="sccp.ssn" showname="Called or Calling SubSystem Number: CAP (146)" hide="yes" size="1" pos="21" show="146" value="92"/>
<field name="" show="Linked to TCAP, TCAP SSN linked to CAMEL" size="1" pos="21" value="92"/>
<field name="" show="Global Title 0x4 (8 bytes)" size="8" pos="22" value="0012046831472762">
<field name="sccp.called.tt" showname="Translation Type: 0x00" size="1" pos="22" show="0x00" value="00"/>
<Field name = "sccp.called.np" showname = "0001 .... = Numbering Plan: ISDN / telephony (0x01)" size = "1" pos = "23" show = "0x01" value = "1" unmaskedvalue = "12" />
<Field name = "sccp.called.es" showname =".... 0010 = Encoding Scheme: BCD, even number of digits (0x02) "size =" 1 "pos =" 23 "show =" 0x02 "value = "2" unmaskedvalue = "12" />
<Field name = "sccp.called.nai" showname = ".000 0100 = Nature of Address Indicator: International number (0x04)" size = "1" pos = "24" show = "0x04" value = "4" unmaskedvalue = "04" />
<field name="sccp.called.digits" showname="Address information (digits): 8613747226" size="5" pos="25" show="8613747226" value="6831472762">
<field name="" show="Country Code: 86 China (People's Republic of) length 2" size="1" pos="25" value="68"/>
</ Field>
<field name="sccp.digits" showname="Called or Calling GT Digits: 8613747226" hide="yes" size="5" pos="25" show="8613747226" value="6831472762"/>
</ Field>
</ Field>
<field name="" show="Calling Party address (10 bytes)" size="10" pos="31" value="12920012046831472422">
<field name="" show="Address Indicator" size="1" pos="31" value="12">
<Field name = "sccp.calling.ri" showname = ".0 .. .... = Routing Indicator: Route on GT (0x00)" size = "1" pos = "31" show = "0x00" value = "0" unmaskedvalue = "12" />
<Field name = "sccp.calling.gti" showname = ".. 01 00 .. = Global Title Indicator: Translation Type, Numbering Plan, Encoding Scheme, and Nature of Address Indicator included (0x04)" size = "1" pos = "31" show = "0x04" value = "4" unmaskedvalue = "12" />
<Field name = "sccp.calling.ssni" showname =".... .. 1. = SubSystem Number Indicator: SSN present (0x01) "size =" 1 "pos =" 31 "show =" 0x01 "value = "1" unmaskedvalue = "12" />
<Field name = "sccp.calling.pci" showname =".... ... 0 = Point Code Indicator: Point Code not present (0x00) "size =" 1 "pos =" 31 "show =" 0x00 " value = "0" unmaskedvalue = "12" />
</ Field>
<field name="sccp.calling.ssn" showname="SubSystem Number: CAP (146)" size="1" pos="32" show="146" value="92"/>
<field name="sccp.ssn" showname="Called or Calling SubSystem Number: CAP (146)" hide="yes" size="1" pos="32" show="146" value="92"/>
<field name="" show="Linked to TCAP, TCAP SSN linked to CAMEL" size="1" pos="32" value="92"/>
<field name="" show="Global Title 0x4 (8 bytes)" size="8" pos="33" value="0012046831472422">
<field name="sccp.calling.tt" showname="Translation Type: 0x00" size="1" pos="33" show="0x00" value="00"/>
<Field name = "sccp.calling.np" showname = "0001 .... = Numbering Plan: ISDN / telephony (0x01)" size = "1" pos = "34" show = "0x01" value = "1" unmaskedvalue = "12" />
<Field name = "sccp.calling.es" showname =".... 0010 = Encoding Scheme: BCD, even number of digits (0x02) "size =" 1 "pos =" 34 "show =" 0x02 "value = "2" unmaskedvalue = "12" />
<Field name = "sccp.calling.nai" showname = ".000 0100 = Nature of Address Indicator: International number (0x04)" size = "1" pos = "35" show = "0x04" value = "4" unmaskedvalue = "04" />
<field name="sccp.calling.digits" showname="Address information (digits): 8613744222" size="5" pos="36" show="8613744222" value="6831472422">
<field name="" show="Country Code: 86 China (People's Republic of) length 2" size="1" pos="36" value="68"/>
</ Field>
<field name="sccp.digits" showname="Called or Calling GT Digits: 8613744222" hide="yes" size="5" pos="36" show="8613744222" value="6831472422"/>
</ Field>
</ Field>
</ Proto>
<proto name="tcap" showname="Transaction Capabilities Application Part" size="73" pos="42">
<field name="tcap.continue" showname="continue" size="71" pos="44" show="" value="">
<field name="" show="Source Transaction ID" size="6" pos="44" value="48043f000fa0">
<field name="tcap.tid" showname="Transaction Id: 3F000FA0" size="4" pos="46" show="3f:00:0f:a0" value="3f000fa0"/>
</ Field>
<field name="" show="Destination Transaction ID" size="6" pos="50" value="4904001844e1">
<field name="tcap.tid" showname="Transaction Id: 001844E1" size="4" pos="52" show="00:18:44:e1" value="001844e1"/>
</ Field>
<field name="tcap.components" showname="components: 2 items" size="57" pos="58" show="2" value="a1180201010201240410a00ea003810102a1048002013b820100a11d0201020201183015800111a206ac0480028090a303810101a403800100">
<field name="tcap._untag_item" showname="_untag: invoke (1)" size="24" pos="60" show="1" value="0201010201240410a00ea003810102a1048002013b820100">
<field name="tcap.invoke" showname="invoke" size="24" pos="60" show="" value="">
<field name="tcap.invokeID" showname="invokeID: 1" size="1" pos="62" show="1" value="01"/>
<field name="tcap.opCode" showname="opCode: localValue (0)" size="3" pos="63" show="0" value="020124">
<field name="tcap.localValue" showname="localValue: 36" size="1" pos="65" show="36" value="24"/>
</ Field>
<field name="" show="Parameter (0x04)" size="18" pos="66" value="0410a00ea003810102a1048002013b820100">
<field name="tcap.msgtype" showname="Tag: 0x04" size="1" pos="66" show="0x04" value="04"/>
<field name="tcap.len" showname="Length: 16" size="1" pos="67" show="16" value="10"/>
</ Field>
<Field name = "tcap.data" showname = "Data: A00EA003810102A1048002013B820100" size = "16" pos = "68" show = "a0: 0e: a0: 03:81:01:02: a1: 04:80:02 : 01:3 b: 82:01:00 "value =" a00ea003810102a1048002013b820100 "/>
</ Field>
</ Field>
<field name="tcap._untag_item" showname="_untag: invoke (1)" size="29" pos="86" show="1" value="0201020201183015800111a206ac0480028090a303810101a403800100">
<field name="tcap.invoke" showname="invoke" size="29" pos="86" show="" value="">
<field name="tcap.invokeID" showname="invokeID: 2" size="1" pos="88" show="2" value="02"/>
<field name="tcap.opCode" showname="opCode: localValue (0)" size="3" pos="89" show="0" value="020118">
<field name="tcap.localValue" showname="localValue: 24" size="1" pos="91" show="24" value="18"/>
</ Field>
<field name="" show="CONSTRUCTOR" size="23" pos="92" value="3015800111a206ac0480028090a303810101a403800100">
<field name="tcap.msgtype" showname="CONSTRUCTOR Tag" size="1" pos="92" show="0x10" value="30"/>
<field name="tcap.msgtype" showname="Tag: 0x00" size="1" pos="92" show="0x00" value="30"/>
<field name="tcap.len" showname="Length: 21" size="1" pos="93" show="21" value="15"/>
<field name="" show="Parameter (0x00)" size="3" pos="94" value="800111">
<field name="tcap.msgtype" showname="Tag: 0x00" size="1" pos="94" show="0x00" value="80"/>
<field name="tcap.len" showname="Length: 1" size="1" pos="95" show="1" value="01"/>
</ Field>
<field name="tcap.data" showname="Data: 11" size="1" pos="96" show="11" value="11"/>
<field name="" show="CONSTRUCTOR" size="8" pos="97" value="a206ac0480028090">
<field name="tcap.msgtype" showname="CONSTRUCTOR Tag" size="1" pos="97" show="0x02" value="a2"/>
<field name="tcap.msgtype" showname="Tag: 0x02" size="1" pos="97" show="0x02" value="a2"/>
<field name="tcap.len" showname="Length: 6" size="1" pos="98" show="6" value="06"/>
<field name="" show="CONSTRUCTOR" size="6" pos="99" value="ac0480028090">
<field name="tcap.msgtype" showname="CONSTRUCTOR Tag" size="1" pos="99" show="0x0c" value="ac"/>
<field name="tcap.msgtype" showname="Tag: 0x02" size="1" pos="99" show="0x02" value="ac"/>
<field name="tcap.len" showname="Length: 4" size="1" pos="100" show="4" value="04"/>
<field name="" show="Parameter (0x00)" size="4" pos="101" value="80028090">
<field name="tcap.msgtype" showname="Tag: 0x00" size="1" pos="101" show="0x00" value="80"/>
<field name="tcap.len" showname="Length: 2" size="1" pos="102" show="2" value="02"/>
</ Field>
<field name="tcap.data" showname="Data: 8090" size="2" pos="103" show="80:90" value="8090"/>
</ Field>
</ Field>
<field name="" show="CONSTRUCTOR" size="5" pos="105" value="a303810101">
<field name="tcap.msgtype" showname="CONSTRUCTOR Tag" size="1" pos="105" show="0x03" value="a3"/>
<field name="tcap.msgtype" showname="Tag: 0x02" size="1" pos="105" show="0x02" value="a3"/>
<field name="tcap.len" showname="Length: 3" size="1" pos="106" show="3" value="03"/>
<field name="" show="Parameter (0x01)" size="3" pos="107" value="810101">
<field name="tcap.msgtype" showname="Tag: 0x01" size="1" pos="107" show="0x01" value="81"/>
<field name="tcap.len" showname="Length: 1" size="1" pos="108" show="1" value="01"/>
</ Field>
<field name="tcap.data" showname="Data: 01" size="1" pos="109" show="01" value="01"/>
</ Field>
<field name="" show="CONSTRUCTOR" size="5" pos="110" value="a403800100">
<field name="tcap.msgtype" showname="CONSTRUCTOR Tag" size="1" pos="110" show="0x04" value="a4"/>
<field name="tcap.msgtype" showname="Tag: 0x02" size="1" pos="110" show="0x02" value="a4"/>
<field name="tcap.len" showname="Length: 3" size="1" pos="111" show="3" value="03"/>
<field name="" show="Parameter (0x00)" size="3" pos="112" value="800100">
<field name="tcap.msgtype" showname="Tag: 0x00" size="1" pos="112" show="0x00" value="80"/>
<field name="tcap.len" showname="Length: 1" size="1" pos="113" show="1" value="01"/>
</ Field>
<field name="tcap.data" showname="Data: 00" size="1" pos="114" show="00" value="00"/>
</ Field>
</ Field>
</ Field>
</ Field>
</ Field>
</ Field>
</ Proto>
<proto name="camel" showname="Camel" size="26" pos="58">
<field name="camel.invoke" showname="invoke" size="24" pos="60" show="" value="">
<field name="camel.invokeId" showname="invokeId: present (0)" size="3" pos="60" show="0" value="020101">
<field name="camel.present" showname="present: 1" size="1" pos="62" show="1" value="01"/>
</ Field>
<field name="camel.opcode" showname="opcode: local (0)" size="3" pos="63" show="0" value="020124">
<field name="camel.local" showname="local: applyChargingReport (36)" size="1" pos="65" show="36" value="24"/>
</ Field>
<Field name = "camel.ApplyChargingReportArg" showname = "ApplyChargingReportArg: A00EA003810102A1048002013B820100" size = "16" pos = "68" show = "a0: 0e: a0: 03:81:01:02: a1: 04:80:02 : 01:3 b: 82:01:00 "value =" a00ea003810102a1048002013b820100 ">
<field name="camel.CAMEL_CallResult" showname="CAMEL-CAMEL_CallResult: timeDurationChargingResult (0)" size="14" pos="70" show="0" value="a003810102a1048002013b820100">
<field name="camel.timeDurationChargingResult" showname="timeDurationChargingResult" size="14" pos="70" show="" value="">
<field name="camel.partyToCharge" showname="partyToCharge: receivingSideID (1)" size="1" pos="74" show="1" value="02">
<field name="camel.receivingSideID" showname="receivingSideID: 02" size="1" pos="74" show="02" value="02"/>
</ Field>
<field name="camel.timeInformation" showname="timeInformation: timeIfNoTariffSwitch (0)" size="2" pos="79" show="0" value="013b">
<field name="camel.timeIfNoTariffSwitch" showname="timeIfNoTariffSwitch: 315" size="2" pos="79" show="315" value="013b"/>
</ Field>
<field name="camel.legActive" showname="legActive: False" size="1" pos="83" show="0" value="00"/>
</ Field>
</ Field>
</ Field>
</ Field>
</ Proto>
<proto name="camel" showname="Camel" size="31" pos="84">
<field name="camel.invoke" showname="invoke" size="29" pos="86" show="" value="">
<field name="camel.invokeId" showname="invokeId: present (0)" size="3" pos="86" show="0" value="020102">
<field name="camel.present" showname="present: 2" size="1" pos="88" show="2" value="02"/>
</ Field>
<field name="camel.opcode" showname="opcode: local (0)" size="3" pos="89" show="0" value="020118">
<field name="camel.local" showname="local: eventReportBCSM (24)" size="1" pos="91" show="24" value="18"/>
</ Field>
<field name="camel.EventReportBCSMArg" showname="EventReportBCSMArg" size="23" pos="92" show="" value="">
<field name="camel.eventTypeBCSM" showname="eventTypeBCSM: tDisconnect (17)" size="1" pos="96" show="17" value="11"/>
<field name="camel.eventSpecificInformationBCSM" showname="eventSpecificInformationBCSM: tDisconnectSpecificInfo (12)" size="4" pos="101" show="12" value="80028090">
<field name="camel.tDisconnectSpecificInfo" showname="tDisconnectSpecificInfo" size="4" pos="101" show="" value="">
<field name="camel.releaseCause" showname="releaseCause: 8090" size="2" pos="103" show="80:90" value="8090">
<Field name = "q931.cause_location" showname =".... 0000 = Cause location: User (U) (0) "size =" 1 "pos =" 103 "show =" 0 "value =" 0 "unmaskedvalue = "80" />
<Field name = "q931.coding_standard" showname = ".00. .... = Coding standard: ITU-T standardized coding (0x00)" size = "1" pos = "103" show = "0x00" value = " 0 "unmaskedvalue =" 80 "/>
<Field name = "q931.extension_ind" showname = "1 ... .... = Extension indicator: last octet" size = "1" pos = "103" show = "1" value = "1" unmaskedvalue = " 80 "/>
<Field name = "camel.cause_indicator" showname = ".001 0000 = Cause indicator: Normal call clearing (16)" size = "1" pos = "104" show = "16" value = "10" unmaskedvalue = "90 "/>
<Field name = "q931.extension_ind" showname = "1 ... .... = Extension indicator: last octet" size = "1" pos = "104" show = "1" value = "1" unmaskedvalue = " 90 "/>
</ Field>
</ Field>
</ Field>
<field name="camel.legID" showname="legID: receivingSideID (1)" size="1" pos="109" show="1" value="01">
<field name="camel.receivingSideID" showname="receivingSideID: 01" size="1" pos="109" show="01" value="01"/>
</ Field>
<field name="camel.miscCallInfo" showname="miscCallInfo" size="3" pos="112" show="" value="">
<field name="inap.messageType" showname="messageType: request (0)" size="1" pos="114" show="0" value="00"/>
</ Field>
</ Field>
</ Field>
</ Proto>
</ Packet>
</ Pdml>
Get finally get a day out, but need to remove the question on many occasions to remove and clean do not understand how the matter might be the reason for similar data (not deleted because the data is indeed very similar to have a property value is not the same as) , the first such use of it. If we can find a better way to learn together ah! ! !

相关文章
  • AS3.0 & Read XML node to modify a complex xml file 2010-04-15

    Tree.mxml documents: <? Xml version = "1.0" encoding = "utf-8"?> <Mx: Application xmlns: mx = " http://www.adobe.com/2006/mxml "creationComplete =" menu.send (); "Layout =" absolute "> <mx:S

  • AS3.0 & Read XML node to modify a complex xml file is deleted to hide the node attributes of nodes 2010-04-15

    Tree.mxml documents: <? Xml version = "1.0" encoding = "utf-8"?> <Mx: Application xmlns: mx = " http://www.adobe.com/2006/mxml "creationComplete =" menu.send (); "Layout =" absolute "> <mx:S

  • [Reserved] AS3.0 display in programming (e) - Loader (loader) 2010-12-16

    http://windtoto.blog.51cto.com/1986737/403919 Original works, for permission to reproduce, reprint, please be sure to indicate the form of hyperlinks to the original source of the article, author information and this statement. Otherwise held liable.

  • AS3.0 modify & read XML node 2010-04-15

    Examples are as follows: Tree.mxml: <? Xml version = "1.0" encoding = "utf-8"?> <Mx: Application xmlns: mx = " http://www.adobe.com/2006/mxml "creationComplete =" menu.send (); "Layout =" absolute &quo

  • As3.0 xml + Loader应用代码 2015-02-19

    简单说说AS3.0中对于XML支持的不同吧: .AS2.0对XML的支持勉勉强强,将就着可以用.而AS3.0中对XML的支持是全方位的,极其强大和灵活的 AS2.0对XML的支持不是内建的(build-in),也并非基于ECMAScript for XML(E4X)标准.而AS3.0中对XML的支持符合E4X标准,它的设计有三个优点: 1. 简易.包括操作和可读性.你会发现AS3.0中对于XML的操作犹如对一个普通Object对象一样浅显易懂.语句非常浅白流畅. 2. 连续性.其各个功能的设计和

  • Flash AS3.0 array of applications 2010-11-09

    Array has two forms: The first: an array of digital form: var myNumber: Array = new Array (1,2,3,4,5); The second: an array of text: var myString: Array = ["Zhang Zhichen", "Wang Sheng Jun," "Song Guangjia"] In other words, t

  • Flex air modify the external xml file 2010-09-06

    AIR file operations is not difficult to read the tutorial files you should meet all the basic operations. This tutorial mainly to the situation encountered in practice to explain We think there will be what file operations, nothing more than to creat

  • as3.0 playing game developed balloon Series (1) 2010-04-09

    Long time no write serious articles, this time to write a dozen balloons article, divided into several parts to write, actually wanted to write fine points, many of which method will be extended to lecture. Specific outline for the following: 1 Sight

  • [Original] AS3.0 to do their own open-source UI component library - sPart v1.0.3 Meihuaban 2010-10-12

    A AS3.0 own open source component library designed to allow users the first time, with the fastest speed to build a flash game, application front-end interfaces required. Perhaps it is not as other similar UI components as powerful, but its small siz

  • Flash AS3.0 tutorial: Learn to use the frame cycle 2010-11-12

    In this case, Flash AS3.0 tutorial series rookie learning to fly, in the last lecture we learned with multiple classes AS3 class file is written, in this lecture we will learn the use of the frame cycle, hoping to give beginners Flash AS Programming'

  • AS3.0 voice synthesis 2010-11-16

    Previously, in the newly released Flex 2, it was said AS3.0 be able to edit the sound, the method is to use ByteArray and SoundMixer. But was proved to be false, SoundMixer can read can not write! But the new approach appeared! SWF format used to wri

  • [Transfer] the less common code written (AS3.0) 2011-01-13

    Some of the less common code written (AS3.0) Author: dmh2002 Posted on :2008-7-27 Category: AS3 experience / skills / game Views: 311 Wording of some of the less common code Written: 1 mc.gotoAndPlay (Math.random () * 10>> 0); 2 if (i & 1) {} 3

  • The type of reflection 0 AS3.0 2011-01-13

    The type of reflection 0 AS3.0 Author: dmh2002 Posted on :2008-7-22 Category: AS3 experience / skills / game Views: 263 Get the class name: pass into an object, returns the full name of the class var loader: URLLoader = new URLLoader (); var classNam

  • Learning AS3.0 class attribute: KeyBoard / KeyboardEvent 2011-05-11

    Purpose: control keyboard / keyboard event handling. Description: Keyboard class is not required by the constructor can use the base class methods and properties. Keyboard class methods used to generate the user to control the interface through a sta

  • AS3.0 Outsourcing Projects - house decoration online design platform 2011-07-20

    The project is written using pure AS3.0, the main function modules include: 1. Drag and drop customization of housing-type components 2. Drag and drop customization of interior furnishings 3. Deformation, writing, drawing room walls, rubber function

  • 使用 FOR XML语句 将查询结构作为XML格式返回[转] 2012-11-04

    原文地址:http://www.simple-talk.com/sql/learn-sql-server/using-the-for-xml-clause-to-return-query-results-as-xml/ The FOR XML clause in SQL Server causes a lot of difficulty, mainly because it is rather poorly explained in Books-on-Line. We challenged Bo

  • javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParser 2010-03-29

    javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found Missing package: stax-api-1.0.1.jar, wstx-asl-3.2.0.jar

  • Modify the Tomcat configuration file to resolve the problem of Chinese garbled 2011-07-21

    During development, the problems encountered in Chinese garbled. Previous solution is: using JAVA code conversion, today consulted about the company's master, gives the solution is: modify the Tomcat configuration file can solve this problem. Specifi

  • redhat 5.4 modify the yum.conf file (rpm) 2011-07-30

    Enterprise Edition is installed redhat linux, of course, did not buy his services, so the installation need to modify yum.conf file is complete, the original will be updated on some of the open site, the following content from the network, through th

  • python通过ElementTree操作XML获取结点读取属性美化XML 2013-12-26

    本文讲解如何通过ElementTree解析XML,获取儿子结点.插入儿子结点.操作属性.美化XML 1.引入库 需要用到3个类,ElementTree,Element以及建立子类的包装类SubElement from xml.etree.ElementTree import ElementTree from xml.etree.ElementTree import Element from xml.etree.ElementTree import SubElement as SE 2.读入并解析