OpenCamera源码阅读之XML解析

最近在看OpenCamera的源码,表示受益很深,项目地址:https://github.com/almalence/OpenCamera

讲真,从来没有解析过XML ,虽然json很方便,但是遇到了,还是表示学习一下

assets 下的xml 文件  opencamera_modes.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>

	<mode id="single" name="single_mode_name" savename="">
		<icon		id="gui_almalence_mode_single"/>

	    <vf 		id="com.almalence.plugins.histogramvf"/> 
	    <vf 		id="com.almalence.plugins.barcodescannervf"/>   
	    <vf 		id="com.almalence.plugins.gridvf"/>
	    <vf 		id="com.almalence.plugins.zoomvf"/>
	    <vf 		id="com.almalence.plugins.focusvf"/>
	    <vf 		id="com.almalence.plugins.infosetvf"/>
	    <vf 		id="com.almalence.plugins.aeawlockvf"/>
	    <vf 		id="com.almalence.plugins.gyrovf"/>
	
	    <capture 	id="com.almalence.plugins.capture" />    
	
	    <processing	id="com.almalence.plugins.simpleprocessing" />    
	
	    <filter/>    
	
	    <export 	id="com.almalence.plugins.export"/>
	
		<sku/>
		
		<howtotext  id=""/>
		
	</mode>
	
	<mode id="burstmode" name="burst_mode_name"  savename="">
	    
	    <icon		id="gui_almalence_mode_burst"/>
	    
	    <vf 		id="com.almalence.plugins.gridvf"/>
		<vf 		id="com.almalence.plugins.zoomvf"/>
	    <vf 		id="com.almalence.plugins.histogramvf"/>
	    <vf 		id="com.almalence.plugins.barcodescannervf"/>
	    <vf 		id="com.almalence.plugins.focusvf"/>
	    <vf 		id="com.almalence.plugins.infosetvf"/>
	    <vf 		id="com.almalence.plugins.aeawlockvf"/>   
	    <vf 		id="com.almalence.plugins.gyrovf"/>
	
	    <capture 	id="com.almalence.plugins.burstcapture" />    
	
	    <processing	id="com.almalence.plugins.simpleprocessing" />    
	
	    <filter/>    
	
	    <export 	id="com.almalence.plugins.export"/>
	
		<sku/>
		
		<howtotext  id=""/>
		
	</mode>
	
	<mode id="expobracketing" name="expobracketing_mode_name"  savename="BKT">
	
	    <icon		id="gui_almalence_mode_expobracketing"/>
	    
	    <vf 		id="com.almalence.plugins.gridvf"/>
	    <vf 		id="com.almalence.plugins.zoomvf"/>
	    <vf 		id="com.almalence.plugins.focusvf"/>
	    <vf 		id="com.almalence.plugins.infosetvf"/>
	    <vf 		id="com.almalence.plugins.aeawlockvf"/>
	    <vf 		id="com.almalence.plugins.gyrovf"/>
	
	    <capture 	id="com.almalence.plugins.expobracketingcapture" />    
	
	    <processing	id="com.almalence.plugins.simplep
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值