473,508 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML, DTD, .C#Net

17 New Member
Hi,
I need to read in a DTD from a file that is provided by a third
party. From the DOM created from this DTD I need to create a GUI which
will allow me to enter information into text boxes to insert into the
XML. For Example:

Start with:

Expand|Select|Wrap|Line Numbers
  1. (DTD)
  2. <!ELEMENT cdlib (cd+)>
  3.  
  4. <!ELEMENT cd (artist+, title+, format?, description?)>
  5. <!ELEMENT artist (#PCDATA)>
  6. <!ELEMENT title (#PCDATA)>
  7. <!ELEMENT format (#PCDATA)>
  8. <!ELEMENT description (#PCDATA)>
  9.  
Next Step is:

(GUI)
------------------------------------------
------------------------------------------
cdlib
------------------------------------------
cd + -
------------------------------------------
________________________
Artist |AnArtist________________| + -
________________________
Title |ATitle__________________| + -
________________________
Format |AFormat_________________| -
________________________
Description |ADescription____________| -

------------------------------------------
------------------------------------------

Next Step is:

Expand|Select|Wrap|Line Numbers
  1. (XML)
  2.  
  3. <cdlib>
  4.  
  5.    <cd>
  6.    <artist>AnArtist</artist>
  7.    <title>ATitle</title>
  8.    <format>AFormat></format>
  9.    <description>ADescription</description>
  10.    </cd>
  11.  
  12. </cdlib>
  13.  
I need to develop this Application in C#.Net.
As you see, the idea is to have an application that is fully dynamic. I have
found some XML parsing components, but they don't seem to allow you to
parse a DTD to create anything but a DOM Document Type. From here I am
unsure what the next step should be. I also here that the DTD section
of the DOM is likely to change greatly in level 3. Is the project just
a pipe dream :)? Any help would be appreciated.

Thanks,

hiren mistry
Jun 25 '07 #1
2 1494
Dököll
2,364 Recognized Expert Top Contributor
Expand|Select|Wrap|Line Numbers
  1.  
  2. Start with:
  3.  
  4. (DTD)
  5. <!ELEMENT cdlib (cd+)>
  6.  
  7. <!ELEMENT cd (artist+, title+, format?, description?)>
  8. <!ELEMENT artist (#PCDATA)>
  9. <!ELEMENT title (#PCDATA)>
  10. <!ELEMENT format (#PCDATA)>
  11. <!ELEMENT description (#PCDATA)>
  12.  
Next Step is:

(GUI)
------------------------------------------
------------------------------------------
cdlib
------------------------------------------
cd + -
------------------------------------------
________________________
Artist |AnArtist________________| + -
________________________
Title |ATitle__________________| + -
________________________
Format |AFormat_________________| -
________________________
Description |ADescription____________| -

------------------------------------------
------------------------------------------

Next Step is:

Expand|Select|Wrap|Line Numbers
  1. (XML)
  2.  
  3. <cdlib>
  4.  
  5.    <cd>
  6.    <artist>AnArtist</artist>
  7.    <title>ATitle</title>
  8.    <format>AFormat></format>
  9.    <description>ADescription</description>
  10.    </cd>
  11.  
  12. </cdlib>
  13.  
I need to develop this Application in C#.Net.Thanks,

hiren mistry[/quote]Follow your dream Hiren!

I am adding a link then forward to C# forum, I think you should start by communication with the your files then go from there. Your GUI should be your starting pointing:

http://www.w3schools.com/dtd/default.asp

Please write if you need additional information.

Good luck with project:-)
Jun 26 '07 #2
Hiren Mistry
17 New Member
Expand|Select|Wrap|Line Numbers
  1.  
  2. Start with:
  3.  
  4. (DTD)
  5. <!ELEMENT cdlib (cd+)>
  6.  
  7. <!ELEMENT cd (artist+, title+, format?, description?)>
  8. <!ELEMENT artist (#PCDATA)>
  9. <!ELEMENT title (#PCDATA)>
  10. <!ELEMENT format (#PCDATA)>
  11. <!ELEMENT description (#PCDATA)>
  12.  
Next Step is:

(GUI)
------------------------------------------
------------------------------------------
cdlib
------------------------------------------
cd + -
------------------------------------------
________________________
Artist |AnArtist________________| + -
________________________
Title |ATitle__________________| + -
________________________
Format |AFormat_________________| -
________________________
Description |ADescription____________| -

------------------------------------------
------------------------------------------

Next Step is:

Expand|Select|Wrap|Line Numbers
  1. (XML)
  2.  
  3. <cdlib>
  4.  
  5.    <cd>
  6.    <artist>AnArtist</artist>
  7.    <title>ATitle</title>
  8.    <format>AFormat></format>
  9.    <description>ADescription</description>
  10.    </cd>
  11.  
  12. </cdlib>
  13.  
I need to develop this Application in C#.Net.Thanks,

hiren mistry
Follow your dream Hiren!

I am adding a link then forward to C# forum, I think you should start by communication with the your files then go from there. Your GUI should be your starting pointing:

http://www.w3schools.com/dtd/default.asp

Please write if you need additional information.

Good luck with project:-)[/quote]

Dear sir,
thanks for such good link.....
But my problem is how to read this dtd in C#.net

and from that i need to generate xml :(

if u have solution for such stuff please let me know

Thanks
Hiren Mistry
Jun 26 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
4032
by: lawrence | last post by:
I haven't been able to reach www.php.net for days. Most of the rest of the web is working for me, though I've bad trouble reaching any English sites. Anyone else having trouble?
0
1466
by: Georgeo Pulikkathara[MS] | last post by:
ASP.NET Webcast Week - January 19 - 23, 2004 Learn about ASP.NET from the experts! These free webcasts are live and interactive. Live code demos and attendees asking in depth engaging questions are...
1
2936
by: Novice | last post by:
Hi all, I am a C++ and Java developer with over 3 years of industry experience. I've written low level C++ code, in addition to web clients that use web services. I've just recently installed the...
9
3100
by: gulu man | last post by:
Hi, What is the substitute for COM objects in .NET? How can I create something similar to com in .net? Is it still possible? Thank you
20
3293
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
5
2519
by: Saga | last post by:
Hi all, I just read the thread by the same name posted on Jun 15, 9:45 AM, but I am looking at it from a different point of view. I came across this question in terms of functionality. Are VB and...
21
2810
by: TAM | last post by:
Hi, I read that ASP.NET uses VB.NET instead of VBScript. I also read that ASP.NET is a subset of VB.NET. So if I learn VB.NET first then do I have the knowledge for programming ASP.NET...
0
1436
by: Georgeo Pulikkathara[MS] | last post by:
ASP.NET Webcast Week - January 19 - 23, 2004 Learn about ASP.NET from the experts! These free webcasts are live and interactive. Live code demos and attendees asking in depth engaging questions are...
3
3041
by: hussein | last post by:
'm not bale to run my projec on the 2000 server, he error was: error while trying to run project: unable to start debugging on the web server.erver side error occurred on sending debug HTTP request...
9
2744
by: Bob | last post by:
Is ASP.NET 1.1 available on the 64 bit extended version of Windows 2003 Server? When I install VS.NET 2003 I then get Service Unavailable from IIS when navigating to the main under construction...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7336
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
7401
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...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.