Code Monkey home page Code Monkey logo

Comments (4)

leethomason avatar leethomason commented on July 17, 2024 2

That's what I get for programming in a text field. Added a test to xmltest.cpp:

    const char* xml = "<parent><child>abc</child></parent>";
    XMLDocument doc;
    doc.Parse( xml );
    XMLElement* ele = doc.FirstChildElement( "parent")->FirstChildElement( "child");

    XMLPrinter printer;
    ele->Accept( &printer );

from tinyxml2.

leethomason avatar leethomason commented on July 17, 2024

Printing (of a sub-node) is in a utility function:

XMLPrinter printer;
pxmlChild->Print( &printer );
ss << printer.CStr();

from tinyxml2.

rummt avatar rummt commented on July 17, 2024

Many thanks!

From: Lee Thomason [mailto:[email protected]]
Sent: 10 September 2012 22:08
To: leethomason/tinyxml2
Cc: rummt
Subject: Re: [tinyxml2] Question: How do you export an XMLElement to an XML string in TinyXML2 (#60)

Printing (of a sub-node) is in a utility function:

XMLPrinter printer;
pxmlChild->Print( &printer );
ss << printer.CStr();


Reply to this email directly or view it on GitHub #60 (comment) .

https://github.com/notifications/beacon/35JkyRZtWljwUSeW-LOUNbCixccNdxvpvvpJbihc1ZCxPNO_74MSYVsGo6pYfQ2w.gif

from tinyxml2.

justinpitts avatar justinpitts commented on July 17, 2024

Is this implying that there is a Print() method on XMLElement ? The closest thing I see is Accept().

from tinyxml2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.