Jump to content

How do I transform the xml that has both types of notation such as ">" and > mixed in xml?


groads2

Recommended Posts

I have an xml that contains both types of notation. Being new to xslt I don't know how I should handle this. I have attached the xml. My style sheet does not traverse through the part that has the escaped characters (>).

<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns5:CorrelatedMessageResponse xmlns:ns1="http://niem.gov/niem/appinfo/2.0" xmlns:ns2="http://niem.gov/niem/structures/2.0" xmlns:ns3="https://collect.prodcjis.ct.gov/ctsp/ext/1.0" xmlns:ns4="https://collect.prodcjis.ct.gov/ctsp/cjis/1.0" xmlns:ns5="https://collect.prodcjis.ct.gov/ctsp/queries/1.0" xmlns:ns6="https://collect.prodcjis.ct.gov/ctsp/messages/1.0" xmlns:ns7="https://collect.prodcjis.ct.gov/ctsp/NLETS/1.0"><ns3:ResponseFormat>XML</ns3:ResponseFormat><ns5:MessageResponse><?xml version="1.0" encoding="UTF-8"?><ncic:Message xmlns:cjis="http://cjis.fbi.gov/1.0.0" xmlns:ncic="http://cjis.fbi.gov/ncic/1.0.5" xmlns:n-art="http://cjis.fbi.gov/ncic/1.0.5/article" xmlns:n-boa="http://cjis.fbi.gov/ncic/1.0.5/boat" xmlns:n-gun="http://cjis.fbi.gov/ncic/1.0.5/gun" xmlns:n-ide="http://cjis.fbi.gov/ncic/1.0.5/identitytheft" xmlns:n-ima="http://cjis.fbi.gov/ncic/1.0.5/image" xmlns:n-lic="http://cjis.fbi.gov/ncic/1.0.5/licenseplate" xmlns:n-mis="http://cjis.fbi.gov/ncic/1.0.5/missingperson" xmlns:n-ori="http://cjis.fbi.gov/ncic/1.0.5/ori" xmlns:n-pro="http://cjis.fbi.gov/ncic/1.0.5/protectionorder" xmlns:n-sec="http://cjis.fbi.gov/ncic/1.0.5/securities" xmlns:n-sen="http://cjis.fbi.gov/ncic/1.0.5/sentry" xmlns:n-######="http://cjis.fbi.gov/ncic/1.0.5/sexualoffender" xmlns:n-sup="http://cjis.fbi.gov/ncic/1.0.5/supervisedrelease" xmlns:n-uni="http://cjis.fbi.gov/ncic/1.0.5/unidentifiedperson" xmlns:n-vbp="http://cjis.fbi.gov/ncic/1.0.5/vehicleboatpart" xmlns:n-veh="http://cjis.fbi.gov/ncic/1.0.5/vehicle" xmlns:n-vgt="http://cjis.fbi.gov/ncic/1.0.5/vgtof" xmlns:n-wan="http://cjis.fbi.gov/ncic/1.0.5/wantedperson" xmlns:n-irr="http://cjis.fbi.gov/ncic/1.0.5/irregular" xmlns:jxdm="http://www.it.ojp.gov/jxdm/3.0.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><cjis:HeaderSection><cjis:TransactionKeyText>QV</cjis:TransactionKeyText><cjis:TransactionHeaderText>1N01UIPSC22498</cjis:TransactionHeaderText><cjis:TransactionOrganization><jxdm:OrganizationORIID><jxdm:ID>CT0010600</jxdm:ID></jxdm:OrganizationORIID></cjis:TransactionOrganization></cjis:HeaderSection><ncic:ResponseDataSection><ncic:NoHitDataSection><ncic:PropertyNoHitResponse><cjis:CaveatText cjis:type="NoHit">NO RECORD</cjis:CaveatText><jxdm:VehicleRegistrationPlateID><jxdm:ID>700KNU</jxdm:ID></jxdm:VehicleRegistrationPlateID></ncic:PropertyNoHitResponse></ncic:NoHitDataSection></ncic:ResponseDataSection><n-veh:QueryDataSection><n-veh:VehicleQuery><jxdm:VehicleRegistrationPlateID xsi:type="ncic:PlateIDType"><jxdm:ID>700KNU</jxdm:ID></jxdm:VehicleRegistrationPlateID><jxdm:PropertyImage><jxdm:BinaryAvailableIndicator>true</jxdm:BinaryAvailableIndicator></jxdm:PropertyImage></n-veh:VehicleQuery></n-veh:QueryDataSection></ncic:Message></ns5:MessageResponse></ns5:CorrelatedMessageResponse></soapenv:Body></soapenv:Envelope>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...