Exemple #1
0
 /// <summary>
 /// Converts a <see cref="XmlDocument"/> to <see cref="YamlDocument"/>.
 /// </summary>
 /// <param name="document">The XML document to convert.</param>
 /// <returns></returns>
 public YamlDocument FromXml(XmlDocument document)
 {
     XmlToYamlConverter converter = new XmlToYamlConverter(document, options);
     return converter.ParseDocument();
 }
Exemple #2
0
        /// <summary>
        /// Converts a <see cref="XmlDocument"/> to <see cref="YamlDocument"/>.
        /// </summary>
        /// <param name="document">The XML document to convert.</param>
        /// <returns></returns>
        public YamlDocument FromXml(XmlDocument document)
        {
            XmlToYamlConverter converter = new XmlToYamlConverter(document, options);

            return(converter.ParseDocument());
        }
Exemple #3
0
 public ExitCaller(XmlToYamlConverter owner)
 {
     this.owner = owner;
 }
Exemple #4
0
 public ExitCaller(XmlToYamlConverter owner)
 {
     this.owner = owner;
 }