php and xml

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • greg brant

    php and xml

    hi,

    this is a bit of an advice thing.
    iv just finished a degree in multimedia, where i learned the usuals...
    html
    flash
    director
    javascript

    i also learned php and i have been told that i should get to grips with xml
    as this combination
    is verry useful

    so iv been messing arround with xml for the past couple of days trying to
    figure out how the two would work together.

    i just cant grasp the idea..

    on thought i have had is that you could use php with a database to generate
    xml but surely that would not be parsed as xml as it would have the .php
    extension..

    as i say im strugling to get this one?

    any ideas or url's

    cheers

    Greg Brant


  • steffen horst

    #2
    Re: php and xml

    > so iv been messing arround with xml for the past couple of days trying to[color=blue]
    > figure out how the two would work together.[/color]

    what about xsl-t?

    s


    --
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

    Comment

    • topls64

      #3
      Re: php and xml

      Yes, the data going between a web service and its client app is XML. In
      fact, I'm working on some stuff now using NuSOAP (a php class file on the
      server) and a vb.net client. Works very well, even though nusoap is still
      sortof in its infancy.
      [color=blue]
      > In web development, XML may be used in (at least) two ways :
      > - in web services protocols (?) like XML-RPC
      > - as a way to store content, which may later be parsed and transformed
      > into (x)html. BTW, xhtml is more or less html 4 rewritten in valid XML.[/color]


      Comment

      • Tony Marston

        #4
        Re: php and xml

        steffen horst <moin666@email. com> wrote in message news:<oprr0fowe a822tll@news.t-online.de>...[color=blue][color=green]
        > > so iv been messing arround with xml for the past couple of days trying to
        > > figure out how the two would work together.[/color]
        >
        > what about xsl-t?
        >
        > s[/color]

        I am currently developing a web application which uses PHP to create
        XML files from a MySQL database, then uses XSL transformations to
        create HTML files. This completely separates the presentation layer
        from the business layer. Take a look at the following articles for
        more details:

        http://www.tonymarston.net/php-mysql/domxml.html - Using PHP's DOM XML
        functions to create XML files from SQL data

        http://www.tonymarston.net/php-mysql/sablotron.html - Using PHP's
        Sablotron extension to perform XSL Transformations

        Tony Marston
        This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL

        Comment

        • steffen horst

          #5
          Re: php and xml

          hi
          [color=blue][color=green]
          >> what about xsl-t?[/color]
          > I am currently developing a web application which uses PHP to create
          > XML files from a MySQL database, then uses XSL transformations to
          > create HTML files. This completely separates the presentation layer
          > from the business layer. Take a look at the following articles for
          > more details:[/color]

          i save reviews of records in xml-files. to transform these files into valid
          html i'm using sablotron too. that's very interesting, even if there's no
          other useful format to transform these xml-files to.

          s


          --
          Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

          Comment

          • Richard Hulbert

            #6
            Re: php and xml

            in article vgm8fgj9hkb683@ corp.supernews. com, greg brant at
            greg_brant@yaho o.co.uk wrote on 8/7/03 8:56 pm:
            [color=blue]
            > hi,
            >
            > this is a bit of an advice thing.
            > iv just finished a degree in multimedia, where i learned the usuals...
            > html
            > flash
            > director
            > javascript
            >
            > i also learned php and i have been told that i should get to grips with xml
            > as this combination
            > is verry useful
            >
            > so iv been messing arround with xml for the past couple of days trying to
            > figure out how the two would work together.
            >
            > i just cant grasp the idea..
            >
            > on thought i have had is that you could use php with a database to generate
            > xml but surely that would not be parsed as xml as it would have the .php
            > extension..
            >
            > as i say im strugling to get this one?
            >
            > any ideas or url's
            >
            > cheers
            >
            > Greg Brant
            >
            >[/color]
            Hi Greg

            The Extension is not relevant as far as XML is concerned you could echo all
            the constituent parts out in PHP and it will be parsed as XML provided you
            create well formed XML and declare it as XML in the first line of code. I
            did just this before I realised the power of the PHP XML DOM

            XML is a great way to get data sets into Flash

            EG In flash
            Create new XML object
            Load a Dynamically Created XML doc (from PHP or jsp or ASP or anything)
            Once Loaded you can use the DOM as the Dynamic element of your flash piece.


            Richard



            Comment

            Working...