Skip to content

XML / XSL

Discussions on XML and related technologies

This category can be followed from the open social web via the handle xml-xsl@forum.codeproject.com

2.6k Topics 6.8k Posts
  • creating ELEMENT with default namespace

    xml question
    3
    0 Votes
    3 Posts
    8 Views
    A
    thanks for your advise! solved. if (GetDefaultNamespace().IsEmpty()) { // Create element with no namespace spNewNode = spXmlDoc->createNode(MSXML2::NODE_ELEMENT, _bstr_t(_T("SECOND")), ""); } else { // Create element with default namespace spNewNode = spXmlDoc->createNode(MSXML2::NODE_ELEMENT, _bstr_t(_T("SECOND")), _bstr_t(_T("mynamespace"))); } huikm
  • xpath & namespace

    xml help question database
    4
    0 Votes
    4 Posts
    11 Views
    S
    IMXNamespaceManager, i think... that said, i've no idea how to use it. However, take a look at this: reallylongmslink/xml2nd_pro_v4_0tyr.asp[^] Shog9 ------ And on the pedestal, these words appear: "My name is Ozymandias, King of Kings, Look on my Works, ye Mighty, and despair!" Nothing beside remains.
  • XML Serialization and Encryption

    csharp security xml json tutorial
    2
    0 Votes
    2 Posts
    7 Views
    P
    Traditionally its better to encrypt something that has little redundancy, i.e. with little repetition. This is often why text files are compressed before they are encrypted, then decrypted and decompressed at the other end. It's difficult to suggest something without a little more info about what it is you're trying to encrypt. Do you mean encrypt individual members of a type, like a string field containing a name or something? For ease its probably better to just encrypt the XML document, if you want to you could always find some .NET code to compress the document beforehand and then encrypt that. -- Paul "I need the secure packaging of Jockeys. My boys need a house!" - Kramer, in "The Chinese Woman" episode of Seinfeld MS Messenger: paul@oobaloo.co.uk Sonork: 100.22446
  • generating XSL with ASP

    xml help sysadmin data-structures question
    2
    0 Votes
    2 Posts
    6 Views
    C
    Why do you want to do this ? Why not generate it with XSL ? Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
  • XML and Binary data

    xml question
    2
    0 Votes
    2 Posts
    8 Views
    P
    Todd Smith wrote: What encoding is typically used with XML when embeded binary data? http://www.xml.com/pub/a/98/07/binary/binary.html[^] So base64. Paul Watson Bluegrass Cape Town, South Africa
  • using xsl

    xml csharp performance help
    3
    0 Votes
    3 Posts
    9 Views
    B
    1. If the XML Document is large then, using DOM for transformation may not be practical. If that is the case, then under the .NET scenario, you should use the XmlTextReader and XmlTextWriter objects. 2. If the XML Document is not large enough then, you can use the DOM Methods which can be pretty verbose even in .NET. 3. Using an XSLT approach may be convenient if the document generally does not exceed 50 Kb. the XSLT file is as follows:
  • xsd:fractionDigits

    xml database com help tutorial
    7
    0 Votes
    7 Posts
    19 Views
    T
    Thanks for your kindness , but no thanks :-O Be The First
  • XML for a starter?

    xml help question learning
    3
    0 Votes
    3 Posts
    7 Views
    Z
    Thanks,Paul. I will check them out. And if you have any problems or questions just ask here. Yes,I will never hesitate to ask "silly" ;P questions. this is my signature for forums quoted from shog*9: I can't help but feel, somewhere deep within that withered, bitter, scheming person, there is a small child, frightened, looking a way out.
  • xsl:variable

    xml csharp tutorial question
    6
    0 Votes
    6 Posts
    14 Views
    C
    Wow - that is EXACTLY what I was looking for, thanks. Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
  • Unsupported chars?

    csharp c++ asp-net xml question
    2
    0 Votes
    2 Posts
    7 Views
    A
    Its not that it isnt allowed, its just that to use it you must escape it. The restricted characters and their escaped versions are: & == & ' == ' > == > < == < " == " So: "The fat cat & his dog" Becomes: &The fat cat & his dog&
  • how to display xml in IE6?

    learning com sales xml help
    2
    0 Votes
    2 Posts
    6 Views
    A
    Im guessing some things got stripped out of your post... the easiest solution to the error is just to remove the
  • XML editor?

    csharp c++ asp-net xml question
    3
    0 Votes
    3 Posts
    9 Views
    R
    Why LOL? And why is my message gone!? Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!
  • XML validation

    xml question database com
    3
    0 Votes
    3 Posts
    12 Views
    H
    You're right, IE doesn't validate the xmls. But you're code is missing the XMLSchemaCache part... Anyway, you still deserve a :beer: ! rechi
  • Copy XML string into a node

    question c++ xml announcement
    4
    0 Votes
    4 Posts
    15 Views
    A
    Try using DocumentFragment .."The DocumentFragment object can represent a fragment of a document or portion of a document's tree. This makes it useful when implementing end user commands that allow users to rearrange a document, such as cutting and pasting.".. See details: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/xml_obj_ixmldomdocumentfragment_0zxw.asp[^] Best regards Anders Munk
  • XML Schema and circular references

    xml question csharp asp-net database
    3
    0 Votes
    3 Posts
    10 Views
    S
    Thanks Erik. I'm trying to setup a schema for a situation where the level of containment is unknown and/or variable. For example, that CarEngineComponent could have a CarEngineComponent that itself contains another CarEngineComponent. I'm getting the feeling that perhaps I'm not thinking in an XML-like way (which I've surprisingly found is not as sraight forward as I'd thought) Thanks again, I'll go and rethink my document. Regards Senkwe ASP.NET can never fail as working with it is like fitting bras to supermodels - it's one pleasure after the next - David Wulff
  • XSD ???

    xml question
    13
    0 Votes
    13 Posts
    45 Views
    N
    Christian Graus wrote: Yes, that's basically what I thought. I'm asking from the perspective of writing a wrapper for XML in C#, and an editor for XML/XSL and XSD's, and I just wondered how useful they are in the 'real' world. Just to follow up on your question about use in the real world, I was working on a project recently that used web services to communicate with a database. The project had a thin oo wrapping around what I required of the xml, and this wrapping layer of classes required certain values from the xml it was given. Rather than doing all the validation within the wrapping classes (and therefore making them more cumbersome), a schema (XSD) was created to validate the xml before it was passed to the wrapper. This way we got good feedback in the form of exceptions when the xml didn't conform to the requirements of the wrapping environment. Also, I did at one point have plans to automatically generate the wrapper classes from the schema itself, and so solve the maintainance time of keeping a schema up to date. The other side issue that arose was that the schema ment that (as another poster has already noted) we had a common interface for parallel development - much like an Interface would do for a Class with pre and post conditions, we used the XSD for the XML. Hope this helps Ben
  • Begginer XML question.

    question csharp asp-net xml
    3
    0 Votes
    3 Posts
    7 Views
    P
    Chagit wrote: How can I do it using C# in ASP.NET? There are many ways, both conventional and unconventional. As Christian mentioned you can use the power of the DataGrid to do most of the grunt work for you. This article explains how it is done. You can also do it manually by having a master/detail setup as you would have had in ASP with a SQL data source. Remember XML is just a data source really, not a full query/input technology. You still need processing from ASP or ASP.NET or some other language to get data into an XML source. So for example you would use XSL to output the HTML which included a FORM element back to a handling ASP page which goes through the FORM child-input-elements writing the changed data back into the XML file. Paul Watson Bluegrass Cape Town, South Africa
  • A parent or not a parent, that is the question...

    question csharp database xml
    3
    0 Votes
    3 Posts
    8 Views
    N
    hm - it might work (it should in theroy), but this code is quite core to the project I'm doing, so it's worth getting it to run as fast as possible. Admittedly getting it to run in the first place is always a good plan, but I think working backwards from the child, rather than forwards from the suggested parent, is a better plan. Thanks for your help anyway! Ben
  • SOAP ...

    wcf sysadmin xml help question
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Java and XML

    question java xml tutorial
    2
    0 Votes
    2 Posts
    6 Views
    R
    java.sun.com try the boards there... Ryan Baillargeon Software Specialist Fuel Cell Technologies Inc.