Beispiel #1
0
        public static Ticket ReadTicket(XmlReader reader)
        {
            while (reader.Read())
            {
                if (reader.NodeType == XmlNodeType.Element)
                {
                    break;
                }
            }

            var tagName = reader.XName();

            if (tagName != Psf.PrintTicket)
            {
                return(null);
            }

            var pt = new PrintSchemaTicket();

            pt.Add(ReadNamespaceDeclarations(reader));

            foreach (var child in ReadChildren(reader))
            {
                pt.Add(child);
            }

            return(pt.GetResult());
        }
Beispiel #2
0
        public static Ticket ReadTicket(XmlReader reader)
        {
            while (reader.Read())
            {
                if (reader.NodeType == XmlNodeType.Element)
                {
                    break;
                }
            }

            var tagName = reader.XName();
            if (tagName != Psf.PrintTicket)
                return null;

            var pt = new PrintSchemaTicket();

            pt.Add(ReadNamespaceDeclarations(reader));

            foreach (var child in ReadChildren(reader))
            {
                pt.Add(child);
            }

            return pt.GetResult();
        }