13#ifndef ARCANE_XMLINFO_H
14#define ARCANE_XMLINFO_H
16#include "arcane/utils/Iostream.h"
17#include "arcane/ArcaneException.h"
18#include "arcane/IApplication.h"
19#include "arcane/IXmlDocumentHolder.h"
20#include "arcane/IIOMng.h"
52 OCStringStream msgStr;
53 msgStr() <<
"** Error: Element <" << element.
name()
54 <<
">: " << msg <<
'.';
65 cerr <<
"** Warning: Element <" << element.
name()
66 <<
">: " << msg <<
".\n";
78 msg() <<
"Attribute \"" << attr_name <<
"\" not specified";
79 error(element,
String(msg.str()));
100 s() <<
"Can't read the file \"" << file_name <<
"\"";
Interface de l'application.
Interface du gestionnaire des entrées sorties.
virtual IXmlDocumentHolder * parseXmlFile(const String &filename, const String &schemaname=String())=0
Lit et analyse le fichier XML filename.
Gestionnaire d'un document DOM.
virtual XmlNode documentNode()=0
Noeud document. Ce noeud est nul si le document n'existe pas.
static void error(const XmlNode &element, const String msg)
static XmlNode rootNode(IIOMng *mng, const String &file_name, const String &schema_name=String())
static void warning(const XmlNode &element, const String msg)
static void attrError(const XmlNode &element, const char *attr_name)
XmlNode documentElement() const
Retourne le noeud élément du document.
String name() const
Nom du noeud.
Chaîne de caractères unicode.