• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

xml to txt

gray eagle

SOH-CM-2025
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.
 
I usually open an xml file in something like Notepad and the copy and paste it to wherever I need to.
 
<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>View attachment 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.
 
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.
 
You are correct, try going to "Advanced" and switch off all Miscellaneous Options.


Code:
<FSDATA
version="9.0"
xmlns:xsi="[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]"
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>
 
Back
Top