Giter Site home page Giter Site logo

gipxml's Introduction

gipXml

Xml component for GlistEngine.

Requirements

  • GlistEngine.
  • Any program that can read/write XML file type.
  • Windows, Linux, or MacOS operating system.

Installation

1. Open file explorer and create necessary folders:

  • On Windows:
    • C:\dev\glist\glistplugins
  • On macOS
    • ~/dev/glist/glistplugins
  • On Linux
    • ~/dev/glist/glistplugins

2. Clone Plugin :

First of all fork this repo at right up corner.

Open command line(cmd.exe or bash) and go to the glistplugins folder by the command.

  • On Windows:

    cd C:\dev\glist\glistplugins

  • On macOS:

    cd ~/dev/glist/glistplugins

  • On macOS:

    cd ~/dev/glist/glistplugins

Clone the gipXml repo by writing this commands on command line:

git clone https://github.com/yourgithubusername/gipXml.git

3. Set Up Plugin

Add "gipXml" in GlistApp's CMakelists.txt's line where it write "set(PLUGINS)" (Like "set(PLUGINS gipXml)").

How to Use

Only requirement to use the plugin is to include the header file of "gipXml" plugin.

Functions

  • bool load(std::string fullpath) :

    Loads the XML from fullpath.

  • bool loadXml(std::string xmlpath) :

    Loads the XML from file path.

  • void parseXml() :

    Parsing for string that contains XML.

  • gipXmlNode* getRootNode() :

    Gets the root node by calling FirstChild function of XMLDocument. It will return a pointer to the XMLNode class.

  • gipXmlNode* getSiblingNode(gipXmlNode* xmlNode) :

    Iterates the node by calling NextSibling() function of XMLNode.

  • gipXmlNode* getChildNode(gipXmlNode* xmlNode) :

    Gets the child level node of the current node by calling FirstChild() function of XMLNode.

  • std::string getTagName(gipXmlNode* xmlNode) :

    Gets the Tag name of the Node using Name() function of XMLElement class.

  • std::string getAttribute(gipXmlNode* xmlNode, std::string attributeName) :

    Gets the values of the attributes of elements using the Attribute() function by giving the attribute name as parameter.

gipxml's People

Contributors

noyanc avatar rhaidur avatar sorbatdev avatar

Watchers

 avatar  avatar

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.