|
hi,
thanks for your reply. I think I understand why everything derives from same base class... I am working on html parser these days and that made me think about it afer all. Bt I think it's either wrong to give XmlNode ability to have child nodes, or it's wrong to make XmlNode as base class. According to W3C recomendation, attribute is name-value pair. Well I don't understand to tokens, entities etc. (anyway I'll hopefully study it ) .. does it allow node* as value? I don't think so. I may be wrong and in case I am wrong, plz correct me.
IMO XmlNode has too much abilities. I'd make even more basic class as base for XmlNode, and derive XmlAttribute from this base class. (actually I do in my project) I am really at the beginning of true understanding to OOP, so plz tell me if it's ok so and why/why not. I simply can't see why atrribute could have child nodes. It's (slightly) bad design IMO.
thank you
David
*I think of value like something atomic, not with hierarchy - thats why i don't like child nodes there
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hi all,
I want to trap all the error messages in my application to a Xml file format.So that it goes on appending the nodes whenever a new error occurs.How to accomplish this.Can anyone help me.....
Thanks in advance
|
|
|
|
|
|
Hi,
does anybody know some links or articles about transforming the schema-xml file of datasets to code?
Especially for Data Access Classes this is useful.
I already did this once but maybe there are some generic solutions out there which could be of use.
Thanks...
|
|
|
|
|
How can I get support for XSLT 2.0 and XPath 2.0 in .NET. Is there an assembly I need to reference or any other download?
Jim
|
|
|
|
|
|
Thanks for your answer.
You are right, Microsoft's decision not to provide support is unforgivable.
Jim
|
|
|
|
|
I have a 3rd-party app that generates some "almost XML" files that I need to parse.
It has elements similar to the following:
<color
name = "Black"
colorspace = "CMYK"
cyan = 0.000000
magenta = 0.000000
yellow = 0.000000
black = 100.000000
/>
Notice that the attributes with numeric values aren't quoted as they should be.
There are also a few empty elements that appear as <data > (the element name and three spaces), although it's an empty element and should be <data /> .
These two deviations from true XML are making it impossible for me to simply load the XML into an XMLDocument so that I can easily access the elements I need.
I don't normally work with XML a whole lot. I was wondering if anyone knows of any "simple" methods or an existing library that can correct these errors in the XML as it's read from the file.
The empty element problem I think I can deal with pretty easily with a simple search/replace, as it seems there's only one element in the file that's ever munged this way, but the missing quotes problem is much bigger, as 99% of the numeric attribures are broken, in all elements.
TIA for any help with this.
Grim (aka Toby) MCDBA, MCSD, MCP+SB
SELECT * FROM user WHERE clue IS NOT NULL
GO
(0 row(s) affected)
|
|
|
|
|
hi,
Library you need will (hopefully) be my school work meanwhile, you can check HTML Tidy (http://www.w3.org/People/Raggett/tidy/[^]) It has some XML support.
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Thanks, David.
I took a look at Tidy, but since it's specific to HTML and won't process a file with unknown tags, it won't work for me in its existing incarnation.
The source code, however, will give me some good insight into how to parse the XML and correct it myself on-the-fly.
Grim (aka Toby) MCDBA, MCSD, MCP+SB
SELECT * FROM user WHERE clue IS NOT NULL
GO
(0 row(s) affected)
|
|
|
|
|
I would think that a Regular Expression would be the best way to fix this - RegExp
"When the only tool you have is a hammer, a sore thumb you will have."
|
|
|
|
|
Hello Everyone,
Im building an xmldocument, I need to create a node that has this structure,
<user ID="10"/>, but I can't figure it out. Im sure this is stupid, but what XmlNodeType should I be using for this, along with anything else I need.
Thanks for the help!
Ryan
|
|
|
|
|
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
|
|
|
|