PDA

View Full Version : xml to txt



gray eagle
September 30th, 2014, 11:16
interested in learning best way to convert xml to text. How can I past a xml document to any thread here so that it shows all the data.

AussieMan
September 30th, 2014, 14:50
I usually open an xml file in something like Notepad and the copy and paste it to wherever I need to.

gray eagle
September 30th, 2014, 15:19
<location name="San Diego USS Midway">If I did what you say, below are results. Now, I'm about talking posting contents of xml file here.
<title>USS_Midway</title>
<latitude>32.693963</latitude>
<longitude>-117.274995</longitude>
<heading>330</heading>
<speed>25

If I take a snap shot of it then, all the goodies (Titles) show with it as well.

</speed></location>12730<location name="San Diego USS Midway"><speed></speed>
</location>What ever it is, it strips the stuff in red and just leaves the text in black.

I've seen threads here were the complete contents of an xml file was posted.
Surely, there has to be a better way.

Lane Street
September 30th, 2014, 15:57
Wrap your text in code tags, the button up in the reply window with <> on it.

cheers,
Lane

glh
September 30th, 2014, 17:34
There is probably some free software that will do the job for you in a nice manner. Just Google

"Free Convert XML-to-Text" and you'll get some choices, I'm sure.

ananda
October 1st, 2014, 02:44
You are correct, try going to "Advanced" and switch off all Miscellaneous Options.





<FSDATA
version="9.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bglcomp.xsd">
<AIRPORT
region="Europe"
country="Germany"
state=""
city="Bautzen"
name="Bautzen Pol"
lat="51.1924004"
lon="14.5217187"
alt="173.1250000"
magvar="2.8399658"
trafficScalar="0.7"
airportTestRadius="16404.2F"
ident="H016"
>
<TOWER
lat="51.1924004"
lon="14.5217187"
alt="0.0M">
</TOWER>
<SERVICES>
<FUEL
type="JETA1"
availability="YES"/>
</SERVICES>
<DELETEAIRPORT
deleteAllControlTowers="TRUE"
deleteAllRunways="TRUE"
deleteAllStarts="TRUE"
deleteAllHelipads="TRUE"
deleteAllFrequencies="TRUE"
deleteAllTaxiways="TRUE"
deleteAllJetways="TRUE"
deleteAllAprons="TRUE"
deleteAllApronLights="TRUE"
deleteAllBoundaryFences="TRUE"
deleteAllBlastFences="TRUE"
deleteAllApproaches="FALSE"/>
<RUNWAY
lat="51.1924088784552"
lon="14.5217146361704"
alt="173.1250000"
surface="ASPHALT"
heading="73.279999"
length="800.0F"
width="0.0F"
number="7"
designator="NONE"
patternAltitude="1000.0F"
primaryTakeoff="YES"
primaryLanding="NO"
primaryPattern="LEFT"
secondaryTakeoff="YES"
secondaryLanding="NO"
secondaryPattern="RIGHT">
<MARKINGS
alternateThreshold="FALSE"
alternateTouchdown="FALSE"
alternateFixedDistance="FALSE"
alternatePrecision="FALSE"
leadingZeroIdent="FALSE"
noThresholdEndArrows="FALSE"
edges="FALSE"
threshold="FALSE"
fixedDistance="FALSE"
touchdown="FALSE"
dashes="FALSE"
ident="FALSE"
precision="FALSE"
edgePavement="FALSE"
singleEnd="FALSE"
primaryClosed="FALSE"
secondaryClosed="FALSE"
primaryStol="FALSE"
secondaryStol="FALSE"/>
<LIGHTS
center="NONE"
edge="NONE"
centerRed="FALSE"/>
</RUNWAY>
<COM
frequency="127.5"
type="TOWER"
name=""/>
<TAXIWAYPOINT
index="0"
type="NORMAL"
orientation="FORWARD"
lat="51.1924476287638"
lon="14.5219204705451"/>
<TAXIWAYPOINT
index="1"
type="NORMAL"
orientation="FORWARD"
lat="51.1923701281467"
lon="14.5215088017958"/>
<TAXIWAYPOINT
index="2"
type="NORMAL"
orientation="FORWARD"
lat="51.1923800605449"
lon="14.5217284491563"/>
<TAXIWAYPOINT
index="3"
type="HOLD_SHORT"
orientation="FORWARD"
lat="51.1924141944678"
lon="14.5219055101982"/>
<TAXIWAYPOINT
index="4"
type="HOLD_SHORT"
orientation="FORWARD"
lat="51.1923473950843"
lon="14.5215506843764"/>
<TAXIWAYPARKING
index="0"
lat="51.1924004000000"
lon="14.5217187000000"
heading="163.2799990000000"
radius="10.0M"
type="RAMP_GA_SMALL"
name="PARKING"
number="1"
pushBack="NONE"/>
<TAXINAME
index="0"
name="A"/>
<TAXIWAYPATH
type="RUNWAY"
start="0"
end="1"
width="0.0F"
weightLimit="500000"
drawSurface="FALSE"
drawDetail="FALSE"
surface="ASPHALT"
number="7"
designator="NONE"
/>
<TAXIWAYPATH
type="PARKING"
start="2"
end="0"
width="0.0F"
weightLimit="500000"
drawSurface="FALSE"
drawDetail="FALSE"
surface="ASPHALT"
name="0"
/>
<TAXIWAYPATH
type="PATH"
start="2"
end="3"
width="0.0F"
weightLimit="500000"
drawSurface="FALSE"
drawDetail="FALSE"
surface="ASPHALT"
name="0"
/>
<TAXIWAYPATH
type="PATH"
start="3"
end="0"
width="0.0F"
weightLimit="500000"
drawSurface="FALSE"
drawDetail="FALSE"
surface="ASPHALT"
name="0"
/>
<TAXIWAYPATH
type="PATH"
start="2"
end="4"
width="0.0F"
weightLimit="500000"
drawSurface="FALSE"
drawDetail="FALSE"
surface="ASPHALT"
name="0"
/>
<TAXIWAYPATH
type="PATH"
start="4"
end="1"
width="0.0F"
weightLimit="500000"
drawSurface="FALSE"
drawDetail="FALSE"
surface="ASPHALT"
name="0"
/>
</AIRPORT>
</FSDATA>

Dumonceau
October 1st, 2014, 08:55
Don't forget notepad++ and put it in code on this site!

Dumonceau