|
hi,
this is element
can be inserted into XmlDocument in many ways,
e.g:
<br />
doc.documentElement.Nodes.<br />
XmlElement node = doc.CreateElement(null,"user",null);<br />
XmlAttribute attr = doc.CreateAttribute(null,"ID",null);<br />
attr.Value="10";<br />
node.Attributes.Append(attr);<br />
doc.DocumentElement.AppendChild(node);<br />
Does it help?
There are more ways how to insert element into xml document, check MSDN for more...
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
|
write me a function that get dataGrid and filePath and makes the XSL file please.
|
|
|
|
|
how much is the pay?
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
|
|
Has anyone found an implementation that is usable in a .net client to send and consume SwA MIME attachments?
I have experimented with the pocketSoap implementation and find the parser to be rather unreliable. My enviroment will not let me expriement with GNU licensed code. The only other option I find is from smart421 but I am leary of no pricing prior to them contacting you sites.
I do not mind getting old. It beats all the other options that can think of.
|
|
|
|
|
Well, I have now written my own class to handle this. BUT I really need to test what I have so far (of course I can read what I create.) Can any one recommend some publicly available sites that have SwA MIME and or DIME attachments with the response.
I do not mind getting old. It beats all the other options that can think of.
|
|
|
|
|
Hi
We are developing this application which uses different platforms like .NET, J2EE, Documentum etc. Data resides in Oracle. Application is exchanging data across these platforms using XML over HTTP protocol.
The problem comes when one perfectly (almost ??) created xml created in Documetentum unables to open in .NET .. Some characters in that xml are not compatible across platforms.
What data format or Encoding we should use so that the xml can work across platforms? Please suggest.
Thanks in advance.
Pankaj
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
hi Pankaj,
what encoding do you use?
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
we use encoding="UTF-8"
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
hi,
so encoding is not a problem. Unicode is platform independent standart and XML even uses UTF-8 as default encoding... .NET has no problem with UTF-8.
Problem has to be somewhere else.
I don't know that Documentum thing... If it produces valid XML (I think it does) there shouldn't be problem with entities, etc. So I really wonder which characters couse problems.
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
i have set the source of an IFRAME to some xyz.xml file. XML gets displayed properly but i have a flickering problem.
If i open any other IFRAME on top of that, there is lot of flickering. The IFRMAE which is on top just contains a simple html page. If i try to move that IFRAME or even enter something in textarea on html page, there is lot of flickering.
Can anyone tell me what is the cause of flickering and how can i prevent it???
Any other tips?
Regards
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
I am currently working on an application that uses XML to store it's data. Items are kept in a tree, where the parent child relationships are important. The document looks a lot like this:
<item title="L2" created="10/7/2004 6:48:24 PM" lastModified="10/7/2004 6:48:24 PM" />
<item title="L3" created="10/7/2004 6:48:30 PM" lastModified="10/7/2004 6:48:30 PM">
<item title="L3A" created="10/7/2004 6:49:09 PM" lastModified="10/7/2004 6:49:09 PM" />
<item title="L3B" created="11/14/2004 3:03:02 PM" lastModified="11/14/2004 3:03:02 PM" />
</item>
<item title="L1" created="11/15/2004 9:18:31 PM" lastModified="11/15/2004 9:19:20 PM">
<item title="L1A" created="10/7/2004 6:48:00 PM" lastModified="10/7/2004 6:48:00 PM" />
</item>
What I am looking for is an efficient way to sort the data that maintains parent / child relationships. In other words I want L3A and L3B to be sorted by date only against each other, stay as children of L3.
Any help is greatly appreciated,
Andy
|
|
|
|
|
hmm
insert new nodes in order?
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
As much as I would like that to be the solution, the file is used in conjunction with a handheld device where the data could be created at different times then coppied over and not necesariliy be put in the right place in the file.
-Andy
|
|
|
|
|
hi,
well, I tried;) Load it into memory, sort all childer of parent element and do the same recursively for all childer is probably the most stupid solution, bt only one I can imagine right now. sorry.
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
HI all,
I have an application using ASP.net, and in this application the user will
have the choice to download data from Sql Server to excel sheet,this will be
done using code only
could any one help me how to do this plzzzz???
|
|
|
|
|
Hi friends...
i want to use HTML tags in xml and show them in ASP.net page(by xslt)
first the problem was fixed by this technique in xslt:
(for example <b> tag)
<xsl:template match="b">
<b><xsl:apply-templates /></b>
</xsl:template>
_____________________________________
but when i save the texts that includes html tags it will save with another type in xml file=>
my textbox value that i typed it manually:
<b>hello</b>
and output in xml file:
<b>hello</b>
_____________________________________
now there are 2 way to fix this problem...
i should save the tags with <b> format in xml or shows that correctly with <b>hello</b> format by replace this characters to "<" and ">"
and i dont know how that are possible...i try so much to find my answer buttt... please help me
|
|
|
|
|
I'm trying to transform a C++ data structure into XML format.
Here is my example. I have 2 cars
Red Ford Mustang, black leather interior and Blue VW Bug, white leather interior.
Using the following data structure(s)
struct RGBcolor
{
int R;
int G;
int B;
};
enum Material
{
leather=0,
fabric,
metal
};
struct Interior
{
Material seats;
RGBcolor seatcolor;
};
enum Make
{
Chevy=0,
Ford,
Oldsmobile,
VW
};
enum Style
{
sedan=0,
sport,
suv,
other
};
struct CAR
{
Make carmake;
Style carstyle;
RGBcolor carcolor;
Interior carinterior;
};
How do I turn struct CAR into XML format? What do my tags look like ESPECIALLY the tag for the "car interior?"
What puzzels me is if I can reuse the tag for RGBcolor in both a parent and child node.
Thank you,
Johnny
|
|
|
|
|
[EDIT]The indenting only comes out right in IE - not in Firefox[/EDIT]
You've got a *lot* of freedom with XML. You could do this:
<cars>
<car>
<make>Ford</make>
<model>Mustang</model>
<color R="255" G="0" B="0"/>
<interior>
<color R="0" G="0" B="0"/>
<material>leather</material>
</interior>
</car>
<!-- and do something similar for the VW -->
</cars>
There is no concept of data typing built into XML as it is into C/C++/Java. If you use some form of schema (XML Schemas or DTDs or RelaxNG, for example), you can apply data typing to XML and (with a suitably capable XML processor) validate the XML file against the schema.
For example (and it's quite a big one), here's an XML schema I knocked up in XMLSpy[^] (theres a free download). I've not encoded all your enums and things, but it gives you an idea of what's needed.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="cars">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="car">
<xs:complexType>
<xs:sequence>
<xs:element name="make" type="MakeType"/>
<xs:element name="model"/>
<xs:element name="color" type="ColorType"/>
<xs:element name="interior">
<xs:complexType>
<xs:sequence>
<xs:element name="color" type="ColorType"/>
<xs:element name="material"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:simpleType name="MakeType">
<xs:restriction base="xs:string">
<xs:enumeration value="Chevy"/>
<xs:enumeration value="Ford"/>
<xs:enumeration value="Oldsmobile"/>
<xs:enumeration value="VW"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ColorType">
<xs:attribute name="R" type="xs:unsignedByte" use="required"/>
<xs:attribute name="G" type="xs:unsignedByte" use="required"/>
<xs:attribute name="B" type="xs:unsignedByte" use="required"/>
</xs:complexType>
</xs:schema>
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
Thanks for the help and example. What I want to do is set up a configuration file (similar to the Cars example) that resembles a C++ data structure, and work with that in both C++ and HTML.
On the HTML side, I'm considering an XML approach so that (IF POSSIBLE) I could easily display the structure in HTML-Help, a Help utility/application for VC++ generated applications.
Thanks again,
Johnny
|
|
|
|
|
Sorry for reposting but I had some info screwed up.
Using MSSXL....
After transforming an XML using an XSL I get stuff like this around the resulting text:
<br />
< ? xml version="1.0" encoding="UTF-16" ? ><br />
plus tag attributes like these:
<br />
xmlns:msxsl="urn:schemas-microsoft-com:xslt"<br />
xmlns:us="us"<br />
in elements that are on top level template match.
What are these? How to disable?
Thanks a lot!
|
|
|
|
|
If you're wanting to output text from an XSL, use the XSL output tag, with the method attribute set to 'text'.
If you're outputting XML - you **need** the XML processing instruction to make your output be XML!!!! You can, however, get rid of namespace declarations you don't want by using the exclude-result-prefixes on the stylesheet/transform elements.
HTH
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
Using MSSXL....
After transforming an XML using an XSL I get stuff like this around the resulting text:
<br />
<?xml version="1.0" encoding="UTF-16"?><br />
plus tag attributes like these:
<br />
xmlns:msxsl="urn:schemas-microsoft-com:xslt"<br />
xmlns:us="us"<br />
in elements that are on top level template match.
What are these? How to disable?
Thanks a lot!
|
|
|
|