|
Hi,
I am not very much sure about what your question is.
Do you need to get the data from the database in XML format. Then if you are using Sql Server, try to use FOR XML inn select sql.
Alternatively you can fill data into a dataset and then use that dataset to create a XmlDataDocument. Then if you are using XSLT for your report, then you can make use of the XmlDataDocument.
Pradipta Basu
|
|
|
|
|
Element Nodes in XML file have attributes associated with them.
I randomly select element nodes in an XML document after loading it using DOM class. The selected element node can have zero or more Attributes associated with it.
If selected xml node got attribute I displayed it in ListView.
Attribute Name: Being First ColumnHeader
Attribute Value: Being Second ColumnHeader
Name Item being label of listView can be edited if i enable "labeledit" in property of listView.
But Value under the subitem cannot be edited.
1. How can i simply edit both field using listView?
2. Is there any other control or method that will help me create 2 columns according to number of attributes and enable me to edit fields?
3. How can I edit listBox items? Is there any possibility of using it.
Your reply will be highly appreciated.
Thank you.
Language: Visual C#
|
|
|
|
|
please help me to get some good examples of .xsd file. i need to taks a seminar about this
thankyou
yesuprakash
|
|
|
|
|
Ask google or the search engine of your choice and you will get many answers.
"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
|
|
|
|
|
XPath: /APP/INCOME[@USERID='25']/@Amount
|
|
|
|
|
how to avoid showing coifirm dialog box after editing the xml file through program.
thankyou
Yesuprakash
|
|
|
|
|
ypki wrote: how to avoid showing coifirm dialog box after editing the xml file through program.
Which program are you talking about?
|
|
|
|
|
ctrl-s
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Here's a fun little app written in C# using .NET Frameworks 2.0.
See: XML Notepad 2007.
Handy features include:
- Tree View synchronized with Node Text View for quick editing of node names and values.
- Incremental search (Ctrl+I) in both tree and text views, so as you type it navigates to matching nodes.
- Cut/copy/paste with full namespace support.
- Drag/drop support for easy manipulation of the tree, even across different instances of XML Notepad and from the file system.
- Infinite undo/redo for all edit operations.
- In place popup multi-line editing of large text node values.
- Configurable fonts and colors via the options dialog.
- Full find/replace dialog with support for regex and XPath.
- Good performance on large XML documents, loading a 3mb document in about one second.
- Instant XML schema validation while you edit with errors and warnings shown in the task list window.
- Intellisense based on expected elements and attributes and enumerated simple type values.
- Support for custom editors for date, dateTime and time datatypes and other types like color.
- Handy nudge tool bar buttons for quick movement of nodes up and down the tree.
- Inplace HTML viewer for processing xml-stylesheet processing instructions.
- Built-in XML Diff tool.
Enjoy!
Chris Lovett
|
|
|
|
|
In XML Notepad 2007 after loading XML file. If I right click on the attribute in treeView I can add Element "Before" or "After" that attribute node. I don't understand why there is need for this functionality. If we click "Before" on popup menu in elementItem, it adds node under the selected attribute node. If I click on After it adds node under the previously added node.
|
|
|
|
|
HI,
Can anyone tell me how to find whether a tag in Xml file is repeated...(i.e)duplicated.can this be done thru VB.NET coding....
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<h1> Time Table</h1>
<xsl:for-each select="TimeTable/Lecture">
<tr>
<td> <xsl:value-of select="CourseTitle"/></td>
<td> <xsl:value-of select="Lecturer"/></td>
<td> <xsl:value-of select="Room"/></td>
<td> <xsl:value-of select="Time"/></td>
</tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
This code display the time table . Now I have to apply a check over it.
CHECK: At one time (Time) there would be only one lecture (CourseTitle) in a room, If there are multilple, it should display a message of CLASH.
Can any one tell me how I can embed this logic in XSL sheet?
|
|
|
|
|
Dear,
try to use
<xsl:choose>
<xsl:when test="urcriteria">
code goes here
</xsl:when>
<xsl:otherwise>
code goes here
</xsl:otherwise>
</xsl:when>
Happy Coding
Best Regards,
Haissam Abdul Malak
|
|
|
|
|
Can you please explain us, clearly, what do you intend to do?
|
|
|
|
|
thanq anyway i found the solution
|
|
|
|
|
Hi,
I'm slowly learning enough about xsd to glue my application together.
As part of a message document i have a list of params included in a <params> element
Stage 1
I wrote the schema to hold paramaters containing string types
<param name='foo'>value1</param>
<param name='bar'>value2</param>
that's all good and the schema works
I've now designed the xml for an array element which i would like to use like this:
<param name='foo2'><array dimesions='2'>.....</array></param>
i can't work out how to define the param type to include either text or my own elements. What i really want to do is to say that a param element can contain anything whether text or xml as long as it has a name attribute defined. is xs:group the right way to go? I've tried all sorts of things, I also found xs:any but Stylus Studio won't let me use it anywhere that makes sense for what i am trying to do.
Thanks in advance,
Russell
|
|
|
|
|
Dear All,
I am working with MSXML.
I cant write integer values on XML files as a tag.
Why ?
I want to write integer vaules into XML File.
Kindly Help me.
Thanks.
|
|
|
|
|
The reality of the matter is that XML only knows about strings. What you need to do is convert the integer into a string representations.
|
|
|
|
|
Sakthiu wrote: I am working with MSXML
What does that mean? Working with it how? Are you writing javscripts, or what?
Sakthiu wrote: I cant write integer values on XML files as a tag.
Why would you want to do that?
led mike
|
|
|
|
|
Please illustrate what you are trying to! You are not being very clear. What language are you using? Are you trying to create and modify a XML document? Come on, now! We cannot help you if you don't give us enough information about your problem.
|
|
|
|
|
George L. Jackson wrote: You are not being very clear. What language are you using?
Are my posts invisible?
led mike
|
|
|
|
|
led mike wrote: Are my posts invisible?
Sorry, I didn't overlook your post! I just got a little too excited!
|
|
|
|
|
i need to return a complete node from one funcion to the other how can i do it?? cuz its not allowing to return a xmlnode list neither as an object
bia
|
|
|
|
|
What language are you using? If you are using C++, what library are you using?
|
|
|
|
|