React Native
React Native
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat React Native Downloads
import { Xml } from '@chilkat/react-native'
function chilkatExample() {
const xml = new Xml();
// Pass either an absolute file path, or a file path relative from the current working directory of the caller.
try {
xml.loadXmlFile('qa_data/hamlet.xml');
} catch {
console.log(xml.lastErrorText);
return;
}
console.log('Success.');
}