Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Getting started with XML

Getting started with XML

Scheduled Pinned Locked Moved XML / XSL
htmltoolsxmltutorialquestion
9 Posts 7 Posters 37 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jeremy Pullicino
    wrote on last edited by
    #1

    Hello guys, I am about to self-teach myself some XML stuff. Till now, what I have seen in the MSDN mixed me up a little bit. It seems that to do anything interesting with MS Explorer and XML, you will have to use a lot scripting. I am not very interested in scripting (even though I know how to script in vbscript and jscript). Is scripting always necessary to use when using XML in IE? Or could a good combination of XML and HTML do the trick? Jeremy. "Hey man, Taliban, Tali me Banana."

    C M E L R 5 Replies Last reply
    0
    • J Jeremy Pullicino

      Hello guys, I am about to self-teach myself some XML stuff. Till now, what I have seen in the MSDN mixed me up a little bit. It seems that to do anything interesting with MS Explorer and XML, you will have to use a lot scripting. I am not very interested in scripting (even though I know how to script in vbscript and jscript). Is scripting always necessary to use when using XML in IE? Or could a good combination of XML and HTML do the trick? Jeremy. "Hey man, Taliban, Tali me Banana."

      C Offline
      C Offline
      Christopher Lord
      wrote on last edited by
      #2

      no Xml has its own transform language, XSL, which can be used to do very interesting things. It can transform XML in one format to another format (for example to tom) You can also use this to output HTML, raw text, CSS, ASP scripts, source code, and more. For example, I have an XSL file i built which transforms Winamp 3 playlists to M3U playlists very quickly. I have another which presents the playlist as an HTML page for viewing. If another media player used XML for playlists but had a totally different node structure, I could port my playlist from Winamp to that program by simply writing a quick XSL doc. Or if i wanted to write a program in C++ with all my music files as constant strings (for performance ;) ), I could write an XSL doc to quickly transform it into a compilable .CPP file. There is a lot more, but thats a good start loc.

      C 1 Reply Last reply
      0
      • J Jeremy Pullicino

        Hello guys, I am about to self-teach myself some XML stuff. Till now, what I have seen in the MSDN mixed me up a little bit. It seems that to do anything interesting with MS Explorer and XML, you will have to use a lot scripting. I am not very interested in scripting (even though I know how to script in vbscript and jscript). Is scripting always necessary to use when using XML in IE? Or could a good combination of XML and HTML do the trick? Jeremy. "Hey man, Taliban, Tali me Banana."

        M Offline
        M Offline
        MS le Roux
        wrote on last edited by
        #3

        Scripting is necessary if you want to use the DOM to process XML. If you don't want to do that, you can use XSLT. XSLT is pretty cool, but it is quite challenging to master. You can take a look at 2 XSLT articles I wrote (while I was still using the name MarSCoZa).

        1 Reply Last reply
        0
        • J Jeremy Pullicino

          Hello guys, I am about to self-teach myself some XML stuff. Till now, what I have seen in the MSDN mixed me up a little bit. It seems that to do anything interesting with MS Explorer and XML, you will have to use a lot scripting. I am not very interested in scripting (even though I know how to script in vbscript and jscript). Is scripting always necessary to use when using XML in IE? Or could a good combination of XML and HTML do the trick? Jeremy. "Hey man, Taliban, Tali me Banana."

          E Offline
          E Offline
          Erik Westermann
          wrote on last edited by
          #4

          One option is to use th DSO (Data Source Object) and a tiny bit of scripting (2-3 lines) to bind a control like a lisst box to an XML data source. Other than that, you can combine your XML with XSL to get IE to render an HTML-like document. Erik Westermann Author, Learn XML In A Weekend (Summer 2002)

          1 Reply Last reply
          0
          • J Jeremy Pullicino

            Hello guys, I am about to self-teach myself some XML stuff. Till now, what I have seen in the MSDN mixed me up a little bit. It seems that to do anything interesting with MS Explorer and XML, you will have to use a lot scripting. I am not very interested in scripting (even though I know how to script in vbscript and jscript). Is scripting always necessary to use when using XML in IE? Or could a good combination of XML and HTML do the trick? Jeremy. "Hey man, Taliban, Tali me Banana."

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Definitely do some reading at TopXML :rose:

            1 Reply Last reply
            0
            • J Jeremy Pullicino

              Hello guys, I am about to self-teach myself some XML stuff. Till now, what I have seen in the MSDN mixed me up a little bit. It seems that to do anything interesting with MS Explorer and XML, you will have to use a lot scripting. I am not very interested in scripting (even though I know how to script in vbscript and jscript). Is scripting always necessary to use when using XML in IE? Or could a good combination of XML and HTML do the trick? Jeremy. "Hey man, Taliban, Tali me Banana."

              R Offline
              R Offline
              Richard Jones
              wrote on last edited by
              #6

              Check out an article about CMarkupArchive by Jonathan de Halleux. I use it in my apps.

              1 Reply Last reply
              0
              • C Christopher Lord

                no Xml has its own transform language, XSL, which can be used to do very interesting things. It can transform XML in one format to another format (for example to tom) You can also use this to output HTML, raw text, CSS, ASP scripts, source code, and more. For example, I have an XSL file i built which transforms Winamp 3 playlists to M3U playlists very quickly. I have another which presents the playlist as an HTML page for viewing. If another media player used XML for playlists but had a totally different node structure, I could port my playlist from Winamp to that program by simply writing a quick XSL doc. Or if i wanted to write a program in C++ with all my music files as constant strings (for performance ;) ), I could write an XSL doc to quickly transform it into a compilable .CPP file. There is a lot more, but thats a good start loc.

                C Offline
                C Offline
                Christopher Duncan
                wrote on last edited by
                #7

                Christopher, I'm looking to do a conversion from Windows Media playlists (.asx, etc.), which is in an xml format, to Winamp .pls for use in the Turtle Beach AudioTron file player I just bought (extremely cool gizmo, by the way). I haven't done anything with xml/xsl yet, but your description of the xsl transform language sounds perfect. Could you point me to some documentation on this feature? I'm not looking to really learn xml in full just yet, I merely have a single problem I need to solve as simply & quickly as I can make it. Thanks! Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                C 1 Reply Last reply
                0
                • C Christopher Duncan

                  Christopher, I'm looking to do a conversion from Windows Media playlists (.asx, etc.), which is in an xml format, to Winamp .pls for use in the Turtle Beach AudioTron file player I just bought (extremely cool gizmo, by the way). I haven't done anything with xml/xsl yet, but your description of the xsl transform language sounds perfect. Could you point me to some documentation on this feature? I'm not looking to really learn xml in full just yet, I merely have a single problem I need to solve as simply & quickly as I can make it. Thanks! Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                  C Offline
                  C Offline
                  Christopher Lord
                  wrote on last edited by
                  #8

                  XSL is mainly for changing XML dialects (XHTML included). In order to transform to non-xml files, like M3U or TXT, you have to either craft your transform very carefully (many formats will not work because they may use tags which conflict) or use something like FOP (http://xml.apache.org/fop/index.html) You'll also have to watch out for whitespace, since most plain-text formats are very picky. Many xsl engines let you use absolute whitespace.

                  C 1 Reply Last reply
                  0
                  • C Christopher Lord

                    XSL is mainly for changing XML dialects (XHTML included). In order to transform to non-xml files, like M3U or TXT, you have to either craft your transform very carefully (many formats will not work because they may use tags which conflict) or use something like FOP (http://xml.apache.org/fop/index.html) You'll also have to watch out for whitespace, since most plain-text formats are very picky. Many xsl engines let you use absolute whitespace.

                    C Offline
                    C Offline
                    Christopher Duncan
                    wrote on last edited by
                    #9

                    Thanks, Christopher. Looks like the quick & dirty way is just a fast MFC dialog based app and a little string processing. Appreciate the link! Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups