| @@ -1,0 +1,17 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace ABlocks\import\XmlParsers; | |
| 4 | + | |
| 5 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 6 | + exit; | |
| 7 | +} | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * WordPress Importer class for managing parsing of WXR files. | |
| 11 | + */ | |
| 12 | +class WXR_Parser { | |
| 13 | + public function parse( $file ) { | |
| 14 | + $parser = new WXR_Parser_SimpleXML(); | |
| 15 | + return $parser->parse( $file ); | |
| 16 | + } | |
| 17 | +} | |