473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Is this able to be done (add units to XML)

<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME>30 min </TIME>
</RECIPE>

OR

<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME UNITS=min>30</TIME>
</RECIPE>

Jul 24 '05 #1
2 1753
bd2bowl wrote:
<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME>30 min </TIME>
</RECIPE>

OR

<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME UNITS=min>30</TIME>
</RECIPE>


Is this SGML or XML? The subject suggests XML, however you have not
quoted the attribute value, so it must be SGML. Did you mean:

<TIME UNITS="min">30</TIME>

The answer to your question depends on the DTD, which you have not
provided. Is this a custom SGML/XML document you are creating or based
on a DTD created by another organisation?

If it's a custom markup language, you can add whatever you like to it.
If it's defined by another organisation with a DTD, you should follow
the rules expressed in it or customise the DTD for your own needs. If
there is no DTD (or Schema), you can add whatever you like (so long as
the document remains well-formed), but you won't be able to check your
document with a validator.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 24 '05 #2
bd2bowl wrote:
<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME>30 min </TIME>
</RECIPE>

OR

<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME UNITS=min>30</TIME>
</RECIPE>


Just in case your example was not something hypothetical but something you
are interested in:
http://www.formatdata.com/recipeml/
Sep 25 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ALthePal | last post by:
Hi, I'm not sure if we are able to or even how to loop through the web forms in a VB.NET project during design time. In MSAccess we are able to go through the database -> forms collection and...
0
by: Ashish | last post by:
Hi, I am not able to find out the Delta XML. Requirement Spec: If I have a file with <ID>101</ID> <Name>BOB</Name> I want to add the changes made to the file like rows added , removed and...
5
by: Javaman59 | last post by:
I just saw an interesting identifier in a C# book I'm reading... double dollarsPerHead This jumped out at me, as it is not common to put units in an identifer. We don't see...
2
by: TheSeeker | last post by:
Hi, As part of a larger project, I am trying to use the GNU Units program to provide unit conversions between quantities. My first iteration, which worked OK, was to simply use units as a...
5
by: admin | last post by:
ok This is my main. Pretty much it goes through each category and starts up 4 worker threads that then ask for groups to gether from. My problem is that when the thread gets done it keeps the...
1
by: truptidalia | last post by:
Hello, I am trying to add 2 RadioButtons in a form in js dynamically. I can see 2 radiobutttons, but no text. On clicking them, their is no selection. One of them is selected. I need to...
7
by: fredd00 | last post by:
Hi we have some page that genreate rss 2.0 feed the url is like .../ rssfeed.aspx?id=123 the page displays properly in browsers, but when we try to add the page to a reader like google...
1
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important...
3
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi In C# ide if you have a SqlServer attached and Create a New XSD Item in a solution you can then drag a db from the SQLServer and ti creates a XSD modelled after the db. Can this be done thru...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.