System.Xml.Tests.TCElement.element_bug480250 C# (CSharp) Method

element_bug480250() public method

public element_bug480250 ( ) : int
return int
        public int element_bug480250()
        {
            string path = FilePathUtil.GetStandardPath();
            string xml = (string)CurVariation.Param;
            string uri = path + @"\XML10\xmlconf\japanese\" + xml;
            XmlReaderSettings rs = new XmlReaderSettings();
            rs.IgnoreWhitespace = true;
            using (XmlReader r = ReaderHelper.Create(uri, rs))
            {
                XmlWriterSettings ws = new XmlWriterSettings();
                ws.Encoding = System.Text.Encoding.GetEncoding("euc-jp");
                using (XmlWriter w = WriterHelper.Create(@"out.xml", ws))
                {
                    w.WriteNode(r, true);
                }
            }
            return TEST_PASS;
        }
    }