Jump to content

Brok3n

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Brok3n

  1. Hi All,Wondering if possible, and if so, how, one would go about getting the 'finished' source of a page with Javascript/ajax? Ie. if my javascript does a load of document.writes and a few ajax calls, is it possible to get the xHTML of the page after this script has executed?Thanks in advance!
  2. Brok3n

    Attributes or Nodes?

    I See.I intend to use my own PHP XML parser class (similar functionality to SimpleXML), and also .NET 2005 (client software). As I have never used XLST (and for this project do not see a need, mind you, i don't really know what it does), it's not a concern if it is harder to use with XLST.The paramters stored as Attributes will only contain data that are considered 'properties' of the defined object, size, location, colour, whatever. This is going to be far better than I thought. Thankyou very much for your help.Thanks very much boen_robot, Little Goat. Much appreciated.
  3. Hi everyone,I am planning a project that will interpret and synthesize output from a mark-up language similar in syntax XHTML.W3Schools XML tutorial ( http://www.w3schools.com/xml/xml_attributes.asp See 'My Favourite Way') says that I should refrain from using Attributes to hold data, yet isn't this the way XHTML does it? For example (from W3Schools, note the DATE below). <note date="12/11/2002"><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note> <note><date>12/11/2002</date><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note> <note><date> <day>12</day> <month>11</month> <year>2002</year></date><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note> See the three ways of doing the same thing? I understand that the third and most expanded form is more easily expanded, more structured etc. BUT, if I am going to be using Attributes to hold small amounts of information (ie. properties [height, width, depth, x, y, z, colour, tooltip, events, effects, src, etc]) and then the auctual data between the tags like this: <tag property1="x" property2="x" property3="x">DATA</tag> Is that an 'acceptable' way of doing it?Hope I did not get confusing there. Any info is appreciated, and thankyou in advance.
×
×
  • Create New...