Click here to Skip to main content
15,908,675 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Of nodes or attributes Pin
Malcolm Smart27-Jun-06 22:02
Malcolm Smart27-Jun-06 22:02 
GeneralRe: Of nodes or attributes Pin
Igor Sukhov28-Jun-06 14:11
Igor Sukhov28-Jun-06 14:11 
GeneralRe: Of nodes or attributes Pin
Malcolm Smart28-Jun-06 21:28
Malcolm Smart28-Jun-06 21:28 
Questionhow to get current date and time in XSL FO Pin
Rizwan Bashir26-Jun-06 23:23
Rizwan Bashir26-Jun-06 23:23 
AnswerRe: how to get current date and time in XSL FO Pin
Dustin Metzgar29-Jun-06 9:05
Dustin Metzgar29-Jun-06 9:05 
AnswerRe: how to get current date and time in XSL FO Pin
Dustin Metzgar29-Jun-06 9:10
Dustin Metzgar29-Jun-06 9:10 
QuestionXML Encryption [modified] Pin
Zahid Nashi26-Jun-06 6:39
Zahid Nashi26-Jun-06 6:39 
QuestionMultiple XML Tables In one File [modified] Pin
PBS_LKI26-Jun-06 3:08
PBS_LKI26-Jun-06 3:08 
I am writing a service desk application. I have an XML file that a c# webservice accesses.
I have 2 tables inside an xml document. I can read from the xml without any problems but writing back to the file causes errors. Here is an sample of the file:

<code><?xml version="1.0" standalone="yes"?>
<ServiceDesk xmlns="http://tempuri.org/ServiceDeskData.xsd">

<ServiceCategory>
<category>
<id>1</id>
<type>Hardware - PC</type>
</category>

<category>
<id>2</id>
<type>Hardware - Printer / Scanner</type>
</category>
</ServiceCategory>

<ServiceRequest>

<Call>
<id>PBS00001</id>
<User>Test</User>
<Category>2</Category>
<Description>Some text</Description>
</Call>

<Call>
<id>PBS00002</id>
<User>Someone</User>
<Category>1</Category>
<Description>gbhjbgjhb</Description>
</Call>

</ServiceRequest>
</ServiceDesk></code>
ServiceDesk is the root element and then ServiceCategory and ServiceRequest are the tables holding the data. The problem occurs when i try to write back a Call to the Service Request Table. If i write to the ServiceRequest table it says that the item (a string array of 4) is too big, and if i write to the Call table it puts it outside the </ServiceRequest> element which breaks the schema. Could anybody give me some suggestions?

The c# code i use is:
<code>
DataSet d = new DataSet();
d.ReadXml("http://localhost/ServiceDeskWS/ServiceDeskData.xml");
String [] s = new String[4];
s[0] = assignID();
s[1] = User;
s[2] = Category;
s[3] = Description;
d.Tables["Call"].Rows.Add(s);
d.WriteXml(Server.MapPath("ServiceDeskData.xml"));</code>


Thanks

-- modified at 9:10 Monday 26th June, 2006
QuestionUpdating attributes using XPathNavigator Pin
Malcolm Smart26-Jun-06 2:54
Malcolm Smart26-Jun-06 2:54 
AnswerRe: Updating attributes using XPathNavigator Pin
Malcolm Smart26-Jun-06 22:33
Malcolm Smart26-Jun-06 22:33 
GeneralRe: Updating attributes using XPathNavigator Pin
Igor Sukhov27-Jun-06 20:01
Igor Sukhov27-Jun-06 20:01 
Questionxml schema Pin
alwz_nikhil25-Jun-06 22:50
alwz_nikhil25-Jun-06 22:50 
Questionxml transformation Pin
c0724-Jun-06 0:24
c0724-Jun-06 0:24 
QuestionXML data parsing Pin
bemahesh22-Jun-06 8:37
bemahesh22-Jun-06 8:37 
AnswerRe: XML data parsing Pin
Dustin Metzgar22-Jun-06 9:39
Dustin Metzgar22-Jun-06 9:39 
GeneralRe: XML data parsing Pin
bemahesh22-Jun-06 10:22
bemahesh22-Jun-06 10:22 
GeneralRe: XML data parsing Pin
Dustin Metzgar22-Jun-06 10:33
Dustin Metzgar22-Jun-06 10:33 
GeneralRe: XML data parsing [modified] Pin
bemahesh22-Jun-06 10:38
bemahesh22-Jun-06 10:38 
GeneralRe: XML data parsing Pin
Dustin Metzgar22-Jun-06 12:25
Dustin Metzgar22-Jun-06 12:25 
GeneralRe: XML data parsing Pin
bemahesh23-Jun-06 6:07
bemahesh23-Jun-06 6:07 
GeneralRe: XML data parsing Pin
Dustin Metzgar23-Jun-06 6:20
Dustin Metzgar23-Jun-06 6:20 
QuestionACCESS NESTED XML FILES Pin
MODI_RAHUL22-Jun-06 1:39
MODI_RAHUL22-Jun-06 1:39 
AnswerRe: ACCESS NESTED XML FILES Pin
Dustin Metzgar23-Jun-06 6:17
Dustin Metzgar23-Jun-06 6:17 
QuestionSearch a String Pin
david boon21-Jun-06 2:26
david boon21-Jun-06 2:26 
QuestionAccessing attributes without knowing there names Pin
sweep12321-Jun-06 0:27
sweep12321-Jun-06 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.