|
Hi,
I need to export my product table to an XML file. All the products need to be in the XML file. I have never worked with XML, except when using the web.config file.
Can someone maybe give me an indication of what the structure of such a file might look like, and how do I export it? If anyone has any good links that I can read, please let me know. The file must be later be imported back into the products table.
Regards
ma se
|
|
|
|
|
You need to know more about XML. The following may be a good start: http://www.w3schools.com/xml/default.asp[^]. Also, you have given very little information about your issue. Since, you didn't give any information about your Table schema, the database or the programming language you are using, you are not going to get much help.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
How can i generate an xml file using javascript
|
|
|
|
|
|
Hi All,
Is there any open source tool like Castor(for java) to convert XML/Schema to C# classes in .NET other than xsd.exe?
Thanks in Advance.
Gokulan
|
|
|
|
|
hay!
I was wondering if I can use a methode in Xslt. I'm using 3 times the same display logic and I don't like that
The 3 times:
1) I have to display a table (while headers) so for my first node I display the data in the nodes + the node attribute (the column name)
2) When I have One row I display the whole thing verticaly so I the same logic in another display logic
3) finally, when I have to display the rest of the rows (more then one) then they are just added tho the horizontal display (point 1 above)
3times the same logic... Can I do something about that? A methode?
thx!!
|
|
|
|
|
The structure of your XML will make transforming it into a table easy or hard. However, you can structure your XSLT to increase the number of columns or rows dynamically by using templates and recursion rather than by looping using for-each. If you want to use functions (methods), parse it in C#, VB.NET, C++/CLI, C++, C or Java.
By the way, I cannot help you much since you didn't give me any clues about the code you written or about the XML you are trying to parse.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Use <XSL:for-each>...</xsl:for-each>
Please refer this[^] for more information.
Regards,
Paresh.
|
|
|
|
|
I have a set i want to enumerate through in an XSLT, of say, 3-4 values, and i'd like to comma seperate them except for the final one.
i.e. i'd like
new string[] {"John", "Ben", "Suzy"};
to be generated in the xslt into:
"John, Ben, Suzy"
Without the trailing comma after suzy, but i have no idea how to do this.
Could anyone help?
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Try usin an if with something like not(last())
led mike
|
|
|
|
|
Fantastic,
Cheers.
Forgive me, i'm an Xslt noob using copy and paste
T
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Buy a book. (Dang that sounds nastier than I want, I really mean it as a friendly suggestion.)
When I started learning XSL I found my old XML Bible (circa 2001) was out of date, so I bought a new book; XSLT 1.0, O'Reilly and it really helped.
And also http://www.w3schools.com/xsl/default.asp[^]
|
|
|
|
|
I find it easy enough to grasp, and i can figure it out in time. I just hate the whole process of doing tutorials and stuff that i already know just to get to those small gems of information that i actualy need to make it work.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Your XML is not well-formed. As the error message says a name cannot begin with a blank, so you have to remove all blanks after the opening bracket of elements.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
I've made an Xslt as a template for a code generator i'm working on. It seems to be getting the bulk of it right, but where i have two Xsl attribute blocks consecutively with only white space in between them, it gets stripped.
I had a look around and couldn't find anything.
Here is my example:
<br />
public <xsl:value-of select="type"/> <xsl:value-of select="name"/><br />
{<br />
}<br />
This produces:
<br />
public DateMyDOB<br />
{<br />
}<br />
It's lame
If anyone can help, that'd be great.
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Tris,
One way to solve this is to use xsl:text:
public <xsl:value-of select="type"/><xsl:text> </xsl:text><xsl:value-of select="name"/>
{
}
You can also use the nonbreaking space character, " " , also.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
Thankyou sir.
That'll do nicely.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Ah, so that's how you get a nonbreaking space!! Thanks! I'll have to write that down.
I've been using <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text> to insert one into HTML.
|
|
|
|
|
The entity does not exist in XSLT, so you have to use the code.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
i am a newbie and using visual studio 2003 for my tinyXML parser test application. While building the project I am getting the following errors. Searched a lot on net but not got the solution to the error. The input library is included. Have you found the solution. Will you help me to get rid of this?
Parse_Test error LNK2019: unresolved external symbol "void * __cdecl xmldoc_Create(char const *)" (?xmldoc_Create@@YAPAXPBD@Z) referenced in function "public: void __thiscall CParse_TestDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CParse_TestDlg@@QAEXXZ)
Parse_Test fatal error LNK1120: 1 unresolved externals
|
|
|
|
|
Did you add reference to the required .lib files?
|
|
|
|
|
Hi
I am having headache with this data compression, the XML response message is huge so that the browser cant handle. if anyone have got any idea pls let me know
Thanks in advance
|
|
|
|
|
|
Thank you very much Dmitry,
you saved my life!! i dont know how to say thanks, i really appreciate it
|
|
|
|
|
Vote for my articles that you like, please That will help a lot.
-------------------------
Don't worry, be happy )
|
|
|
|