xml to txt
Results 1 to 7 of 7

Thread: xml to txt

  1. #1

    xml to txt

    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.

  2. #2
    SOH Staff .."Bartender" AussieMan's Avatar
    Join Date
    Jun 2005
    Location
    Woy Woy, NSW, Australia Zulu +11 AEDST
    Age
    77
    Posts
    3,593
    I usually open an xml file in something like Notepad and the copy and paste it to wherever I need to.


    Cheers
    Pat


    "Some people might say that freedom is being alone in the bush with the only sounds being the murmurs from the birds ... but I believe freedom is at 5000 feet with no other sound than the engine roaring."- William Hutchison, a young man taken from us far too young (16).

  3. #3
    <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>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.

  4. #4
    Wrap your text in code tags, the button up in the reply window with <> on it.

    cheers,
    Lane

  5. #5
    SOH-CM-2023
    Join Date
    Sep 2007
    Location
    St. Petersburg, FL
    Age
    78
    Posts
    855
    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.

  6. #6
    You are correct, try going to "Advanced" and switch off all Miscellaneous Options.


    Code:
    <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>

  7. #7
    Don't forget notepad++ and put it in code on this site!

    Dumonceau

Members who have read this thread: 0

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •