|
For your example, try this:
"/database/structure/table[@name='" + tableName + "']/column[identity]/@name"
Evaluating this in XMLSpy (after substituting the table name, obviously) gives me the name attribute with value 'PK'. Adding more columns with an identity child element leads to their names also being returned.
HTH
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
Hi All,
I have a doubt regarding XML elements naming.
Let say I have an XML document having an element
called .
If I add a sub-element to the element with the
same name for e.g.
Is the above structure recommendable?
Will this structure cause any problems while parsing the XML file
using MSXML DOM parser?
Please guide me.
Thanks in advance,
Abhishek.
|
|
|
|
|
Hi all,
once more starter question.
I am starting with XML and XSLT. I created XML document and XSLT to it. But the IE shows to me not what I expect. Can I somehow see the HTML, which comes after the transformation? (Or how can I debug my stuff?)
Thanks,
boni
|
|
|
|
|
show some source, plz...
Boniolopez wrote:
But the IE shows to me not what I expect.
What does it show?
btw It's good to see that you are starting with XSLT
If I saw this post litle earlier, I would not suggest u this in post above
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hi Dave,
thank you for your very clear answer in my previous posting. Now I understand the idea, and what I have to do.
Algthouth I don't think, that it is worse to post my XSL errors into forum so far . . The question is how can I debug the output of the transformation myself. I want to see the HTML code, which is generated after the transformation, but if I make "show source" in the IE, it shows the XML before the transformation. Is it some magic too, whic looks like
magic_tool input.xml input.xsl >output.txt
Thanks in advance,
boni
|
|
|
|
|
Boniolopez wrote:
if I make "show source" in the IE, it shows the XML before the transformation.
Of course it does. Original XML is real source stored in file, isn't it? If you want to see transformed source, transform your XML into HTML, then save transformed HTML into file and only then open this file in IE. If you work in .NET, magic tool can be XslTransform class for System.Xml.Xsl namespace. Write little app which saves transformed XML into HTML file or something like that. With MSDN or google it won't be difficult task.
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Thank you for your great help.
|
|
|
|
|
Hi all,
am new with xml, so may be the question is not very correct. I have the xlm description of the electonic shema. This description includes nodes (i.e. transistors, resistors ...) and wires. Now I want to visualize the circuit with intenet explorer. I have somehow to make IE to understand, that when it meet in XML transistor it has to take the picture transistor.gif... After all elements are placed it has to draw the wires in the optimal way (route on the fly?I have an algorithm but don't know where to put it in xml).
I have absolutely no idea how XML can be visualized. Please could you give me the starting point.
Thanks,
Boni
|
|
|
|
|
hi Boni,
oh oh... i only see lots of xslt and javascript and CSS or plug-in to IE. Yeah, plug-in shoud be better option, but still it's quite difficult I think (I never made any plugin). At least, it is possible to archive your goal However, IMO its far easier to make win app for it instead of use IE.
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hi David, hi all
thank you very much for your reply.
I have now easier question. Lets leave the routing outside (As far as I understand you javascript and plug-in are from routing, right?). How can I say the IE that if it meets a tag "Transistor" to take a picture "transistor.gif". Is it easy? Do I supposed to use XSLT or CSS? (sorry, I don't know much about both and the resources I could find so far about XSLT was not very clear. On other side I use CSS to change font colors on the page and so on, but don't know how it can help to solve my problem.)
Thanks alot,
Boni
|
|
|
|
|
Hi Boni,
Boniolopez wrote:
How can I say the IE that if it meets a tag "Transistor" to take a picture "transistor.gif"
You actually don't say it to IE. Yes, you are supposed to use XSLT. What XSLT do? You have some XML document, and in XSLT you say how to transform it. Result of transformation is usually another XML document, but not allways. You can have XSLT transformation which will output CSV, plain text or whatever. So you will have XLST which will transform XML tag "Transistor" into tag "<img src='transistor.gif' />" The point of use CSS is in absolute positioning, which allow you to arrange images on page.
Example: <img src='transistor.gif' style='position:absolute;left:5px;top:5px'>
will render image with upper-left corner 5 pixels from top of the page and 5 pixels from left border .
btw I've learnt XSLT from (MSDN[^]) I think it's good for u to learn it too (whereever), cuz I think XSLT is very powerful and useful technology... It's not so difficult as it might look
I hope these information are helpfull... I don't want to write it all, a) it would be so loong post
b) I want to leave something for u
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
I have wrote, using C# a tool that will read Word Documents (with specific formatting) into XML files. The software will be used for a publishing house. The issue is that I would like to give the users a search engine that will enable them to search for a word in all the XML files, and once found high light all the instances...
Are there ready made, customizable xml search engines or is it something that I have to build
Elie
|
|
|
|
|
XPath is, in essence, an XML search engine. It shouldn't be too hard to write an XSLT that searches for a parameterised word and returns a result.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am sorry I did not respond to you sooner. I am just a bigger when it comes to XML. Have you got a small sample.
|
|
|
|
|
I want convert managed C++ System.String type to C style, char, tchar, _bstr types. How can i conver to un managed c++ types.
Please help..
Murali.
|
|
|
|
|
Are you using the string to store XML ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Can anybody help me??? please
I have 2 xml files. One of them is a subtree of another one. I need to find node in first document that is parent for second xml. I need it for additional processing using MSXML DOM and that's why I can't use string search. Second xml may has attributes and childs at different level.
My first idea was to create XPath by processing XML DOM structure of second xml, but it turned out, that it is not so easy.
Thanks
|
|
|
|
|
hii can anyone give me an example of how to import xml file and then insert the element of that xml file to microsoft access table
|
|
|
|
|
does anyone know of a website where you can upload your vxml files and run your application software? so that users can call the server and add things based on the vxml. i know bevocal.com is a test site, but i havent found any pay sites to run my website.
|
|
|
|
|
Dear CPians,
I am trying to have a & n b s p ; in an XSL file. Is there a way to do it
Thank you!
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
If you want to put the into an output document (such as HTML) as-is, you could try this:
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
or you could put the following at the top of your XSL file and then use entity in your satylesheet.
<!DOCTYPE stylesheet [
<!ENTITY nbsp " ">
]>
Stuart Dootson
'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
|
|
|
|
|
Thank you very much...;P
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
If built up a TCP/IP communication between two PC´s via a socket connection. The client is sending XML Data to the Server. I´m writing this Data to a buffer at the moment. The Server is supposed two answer by sending XML Data back.
I need specific Information from the Data sent by the client. I´m trying to find out, how to do that.
I thought, it might be the easiest way to use Serialization. But therefore i need to convert the data in the buffer to a Filestream. And i don´t want to save the Data to the HardDrive first before extracting information.
I´m using C++ & MS VS .Net 2003.
Is this conversation possible?
Do you think that this is the appropriate way to do it, or are there other ways to get to the XML Data i need.
I must say that i´m not a experienced c++ programmer. Please keep that in mind when answering!!
Thanks for the help!!
|
|
|
|
|
Try using MemoryStream - the code should be similar to the stuff below
<br />
using System.Xml;<br />
using System.IO;<br />
<br />
byte[] byteArray = ipSocket.getBytes(numBytes);
MemoryStream memStream = new MemoryStream(100);<br />
memStream.Write(byteArray,0,byteArray.Length);<br />
XmlTextReader reader = new XmlTextReader(stream);<br />
Then do whatever you need to do with the stream contents as XML, Validate, transform, etc.
To put XML data back on the socket,
<br />
MemoryStream memWriteStream = new MemoryStream(100);<br />
XmlTextWriter writer = new XmlTextWriter(memWriteStream,null);<br />
byte[] memBuffer = memWriteStream.GetBuffer();
int nResult = ipSocket.WriteBytes(memBuffer);
Hope this helps
aacool
Aaman Lamba
|
|
|
|
|
Hi
I can't figure out how to send XML requests to a server and get a XML response. I'm looking at XML-RPC but I'm not sure if it is right. I don't want to send procedure-calls.
If somebody knows a class in C++ that can do it easily - I'm probably just missing the connecting link (so to speek)
Any help would be appreciated - thank you
Simon
|
|
|
|